halcanary | 1b5c604 | 2015-02-18 11:29:56 -0800 | [diff] [blame] | 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 | |
halcanary | 7a14b31 | 2015-10-01 07:28:13 -0700 | [diff] [blame] | 10 | class SkImage; |
Hal Canary | a121183 | 2018-11-13 16:45:14 -0500 | [diff] [blame] | 11 | class SkPDFDocument; |
| 12 | struct SkPDFIndirectReference; |
halcanary | 792c80f | 2015-02-20 07:21:05 -0800 | [diff] [blame] | 13 | |
halcanary | 1b5c604 | 2015-02-18 11:29:56 -0800 | [diff] [blame] | 14 | /** |
Hal Canary | a121183 | 2018-11-13 16:45:14 -0500 | [diff] [blame] | 15 | * Serialize a SkImage as an Image Xobject. |
Mike Reed | 2e3f2e9 | 2017-12-15 20:43:03 +0000 | [diff] [blame] | 16 | * quality > 100 means lossless |
halcanary | 1b5c604 | 2015-02-18 11:29:56 -0800 | [diff] [blame] | 17 | */ |
Hal Canary | a121183 | 2018-11-13 16:45:14 -0500 | [diff] [blame] | 18 | SkPDFIndirectReference SkPDFSerializeImage(const SkImage* img, |
| 19 | SkPDFDocument* doc, |
| 20 | int encodingQuality = 101); |
halcanary | 1b5c604 | 2015-02-18 11:29:56 -0800 | [diff] [blame] | 21 | |
| 22 | #endif // SkPDFBitmap_DEFINED |