blob: bc2c57bd3beddb0b01ca7c46e9a87fd6e45e9f90 [file] [log] [blame]
halcanary1b5c6042015-02-18 11:29:56 -08001/*
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
halcanary7a14b312015-10-01 07:28:13 -070010class SkImage;
Hal Canarya1211832018-11-13 16:45:14 -050011class SkPDFDocument;
12struct SkPDFIndirectReference;
halcanary792c80f2015-02-20 07:21:05 -080013
halcanary1b5c6042015-02-18 11:29:56 -080014/**
Hal Canarya1211832018-11-13 16:45:14 -050015 * Serialize a SkImage as an Image Xobject.
Mike Reed2e3f2e92017-12-15 20:43:03 +000016 * quality > 100 means lossless
halcanary1b5c6042015-02-18 11:29:56 -080017 */
Hal Canarya1211832018-11-13 16:45:14 -050018SkPDFIndirectReference SkPDFSerializeImage(const SkImage* img,
19 SkPDFDocument* doc,
20 int encodingQuality = 101);
halcanary1b5c6042015-02-18 11:29:56 -080021
22#endif // SkPDFBitmap_DEFINED