Home | History | Annotate | Download | only in pdf
      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 #include "SkRefCnt.h"
     11 
     12 class SkImage;
     13 class SkPDFObject;
     14 
     15 /**
     16  * SkPDFBitmap wraps a SkImage and serializes it as an image Xobject.
     17  * It is designed to use a minimal amout of memory, aside from refing
     18  * the image, and its emitObject() does not cache any data.
     19  *
     20  *  quality > 100 means lossless
     21  */
     22 sk_sp<SkPDFObject> SkPDFCreateBitmapObject(sk_sp<SkImage>, int encodingQuality = 101);
     23 
     24 #endif  // SkPDFBitmap_DEFINED
     25