• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
10 class SkImage;
11 class SkPDFDocument;
12 struct SkPDFIndirectReference;
13 
14 /**
15  * Serialize a SkImage as an Image Xobject.
16  *  quality > 100 means lossless
17  */
18 SkPDFIndirectReference SkPDFSerializeImage(const SkImage* img,
19                                            SkPDFDocument* doc,
20                                            int encodingQuality = 101);
21 
22 #endif  // SkPDFBitmap_DEFINED
23