• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2010 The Android Open Source Project
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 
8 
9 #ifndef SkPDFFormXObject_DEFINED
10 #define SkPDFFormXObject_DEFINED
11 
12 #include "SkPDFDevice.h"
13 #include "SkPDFTypes.h"
14 
15 /** A form XObject is a self contained description of a graphics
16     object.  A form XObject is a page object with slightly different
17     syntax, that can be drawn into a page content stream, just like a
18     bitmap XObject can be drawn into a page content stream.
19 */
20 sk_sp<SkPDFObject> SkPDFMakeFormXObject(std::unique_ptr<SkStreamAsset> content,
21                                         sk_sp<SkPDFArray> mediaBox,
22                                         sk_sp<SkPDFDict> resourceDict,
23                                         const SkMatrix& inverseTransform,
24                                         const char* colorSpace);
25 #endif
26