1/*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7#ifndef SkPDFBitmap_DEFINED
8#define SkPDFBitmap_DEFINED
9
10class SkImage;
11class SkPDFDocument;
12struct SkPDFIndirectReference;
13
14/**
15 * Serialize a SkImage as an Image Xobject.
16 * quality > 100 means lossless
17 */
18SkPDFIndirectReference SkPDFSerializeImage(const SkImage* img,
19 SkPDFDocument* doc,
20 int encodingQuality = 101);
21
22#endif // SkPDFBitmap_DEFINED
23