3#ifndef PDFSDK_GRAPHICS_H_INCLUDED_
4#define PDFSDK_GRAPHICS_H_INCLUDED_
11#include <pdfsdk/core/api_macro.h>
22typedef void* GXObject;
23typedef struct GXBitmapRec_* GXBitmap;
24typedef struct GXBrushRec_* GXBrush;
25typedef struct GXFontFaceRec_* GXFontFace;
26typedef struct GXGeometryRec_* GXGeometry;
27typedef struct GXGradientRec_* GXGradient;
28typedef struct GXPaletteRec_* GXPalette;
29typedef struct GXRegionRec_* GXRegion;
30typedef struct GXRenderTargetRec_* GXRenderTarget;
31typedef struct GXHwContextRec_* GXHwContext;
32typedef struct GXSysFontRec_* GXSysFont;
45typedef uint32_t GXColorValue;
47#define GXColorValueFromARGBBytes(a, r, g, b) \
48 (static_cast<GXColorValue>( \
49 ((static_cast<uint32_t>(a) & 0xFF) << 24) | \
50 ((static_cast<uint32_t>(r) & 0xFF) << 16) | \
51 ((static_cast<uint32_t>(g) & 0xFF) << 8) | \
52 ((static_cast<uint32_t>(b) & 0xFF) << 0)))
54#define GXColorValueFromARGB(a, r, g, b) \
55 (GXColorValueFromARGBBytes( \
56 static_cast<uint8_t>(a * 255.f), \
57 static_cast<uint8_t>(r * 255.f), \
58 static_cast<uint8_t>(g * 255.f), \
59 static_cast<uint8_t>(b * 255.f)))
61#define GXColorValueGetByteA(argb) (static_cast<uint8_t>((static_cast<GXColorValue>(argb) >> 24) & 0xFF))
62#define GXColorValueGetByteR(argb) (static_cast<uint8_t>((static_cast<GXColorValue>(argb) >> 16) & 0xFF))
63#define GXColorValueGetByteG(argb) (static_cast<uint8_t>((static_cast<GXColorValue>(argb) >> 8) & 0xFF))
64#define GXColorValueGetByteB(argb) (static_cast<uint8_t>((static_cast<GXColorValue>(argb) >> 0) & 0xFF))
66#define GXColorValueGetA(argb) (GXColorValueGetByteA(argb) / 255.f)
67#define GXColorValueGetR(argb) (GXColorValueGetByteR(argb) / 255.f)
68#define GXColorValueGetG(argb) (GXColorValueGetByteG(argb) / 255.f)
69#define GXColorValueGetB(argb) (GXColorValueGetByteB(argb) / 255.f)
107 unsigned int rowLength;
250enum { kGXDashPatternMaxSize = 15 };
254 float pattern[kGXDashPatternMaxSize];
284 GXColorValue bgColor;
296 GXColorValue bgColor;
346 int16_t underlinePosition;
347 int16_t underlineThickness;
348 int16_t strikethroughPosition;
349 int16_t strikethroughThickness;
357 kGXFontFlagFixedPitch = 0x01,
358 kGXFontFlagSerif = 0x02,
359 kGXFontFlagScript = 0x04,
362typedef uint32_t GXFontFlags;
364typedef uint32_t GXUnicodeChar;
384 kGXSysFontQueryMatchFamily = 0x01,
385 kGXSysFontQueryMatchWeight = 0x02,
386 kGXSysFontQueryMatchCharset = 0x04,
387 kGXSysFontQueryMatchPitch = 0x08,
388 kGXSysFontQueryMatchSerifs = 0x10,
389 kGXSysFontQueryMatchScript = 0x20,
390 kGXSysFontQueryMatchItalic = 0x40,
391} GXSysFontQueryMatchFlagsBits;
393typedef unsigned int GXSysFontQueryMatchFlags;
396 GXSysFontQueryMatchFlags matchFlags;
397 const wchar_t* family;
399 GXUnicodeChar unicode;
405typedef PDErrCode(PDFSDK_CALLCONV* GXSysFontEnumProc)(
void* userdata, GXSysFont sysfont);
407typedef PDErrCode(PDFSDK_CALLCONV* GXSysFontCustomEnumProc)(
void* userdata,
void* fontData);
410 PDErrCode(PDFSDK_CALLCONV* enumFonts)(
void* handlerData, GXSysFontCustomEnumProc proc,
void* userdata);
411 PDErrCode(PDFSDK_CALLCONV* getFamilyName)(
void* fontData,
wchar_t* buffer,
size_t bufsize,
size_t* psize);
412 PDErrCode(PDFSDK_CALLCONV* getPostScriptName)(
void* fontData,
wchar_t* buffer,
size_t bufsize,
size_t* psize);
413 PDErrCode(PDFSDK_CALLCONV* getFontName)(
void* fontData,
wchar_t* buffer,
size_t bufsize,
size_t* psize);
415 PDErrCode(PDFSDK_CALLCONV* getFontFlags)(
void* fontData, GXFontFlags* pFlags);
416 PDErrCode(PDFSDK_CALLCONV* getUnicodeRanges)(
void* fontData,
GXUnicodeRange* buffer,
size_t bufsize,
size_t* psize);
417 PDErrCode(PDFSDK_CALLCONV* loadFontFace)(
void* fontData, GXFontFace* pFontFace);
418 void(PDFSDK_CALLCONV* freeFontData)(
void* fontData);
419 void(PDFSDK_CALLCONV* freeHandlerData)(
void* handlerData);
422typedef uint32_t GXSysFontsHandlerID;
424typedef PDErrCode(PDFSDK_CALLCONV* GXRegionRectEnumProc)(
void* userdata,
const PDRectI* rect);
426typedef unsigned int GXCacheEntryID;
433PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXObjectAcquire(GXObject
object);
434PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXObjectRelease(GXObject
object);
441 GXPalette* ppalette);
442PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXPaletteGetNumColors(GXPalette palette,
size_t* pnum_colors);
443PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXPaletteGetColor(GXPalette palette,
445 GXColorValue* pcolor);
446PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXPaletteGetColors(GXPalette palette,
447 const GXColorValue** pcolors);
454PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateBitmapFromFile(
const wchar_t* filename, GXBitmap* pbitmap);
455PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateBitmapFromFileFrame(
const wchar_t* filename,
456 uint32_t frame_index,
457 uint32_t* ptotal_frames,
459PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateBitmapFromMemory(
const void* data,
462PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateBitmapFromMemoryFrame(
const void* data,
464 uint32_t frame_index,
465 uint32_t* ptotal_frames,
467PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapSaveToFile(GXBitmap bitmap,
const wchar_t* filename);
469PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateBitmapFromHBITMAP(
void* hbitmap, GXBitmap* pbitmap);
470PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapSaveToHBITMAP(GXBitmap bitmap,
void** phbitmap);
473PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapGetSize(GXBitmap bitmap,
PDSizeI* psize);
474PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapGetDpiX(GXBitmap bitmap,
float* pdpix);
475PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapGetDpiY(GXBitmap bitmap,
float* pdpiy);
476PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapSetPalette(GXBitmap bitmap, GXPalette palette);
477PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapGetPalette(GXBitmap bitmap, GXPalette* ppalette);
478PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapLock(GXBitmap bitmap,
482PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapUnlock(GXBitmap bitmap);
483PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapCopyFromBitmap(GXBitmap bitmap,
487PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapCopyFromMemory(GXBitmap bitmap,
490PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapCopyToMemory(GXBitmap bitmap,
493PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapColorFill(GXBitmap bitmap,
496PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapNotifyChanged(GXBitmap bitmap);
497PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapSetOffscreenPainting(GXBitmap bitmap,
bool offscreen);
503PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapCacheGetMemoryQuota(
size_t* pquota);
504PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapCacheGetMemoryInUse(
size_t* pinuse);
505PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapCachePut(GXBitmap bitmap, GXCacheEntryID* pid);
506PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapCacheGet(GXCacheEntryID
id, GXBitmap* pbitmap);
507PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXBitmapCacheRemove(GXCacheEntryID
id);
513 GXGradient* pgradient);
515 GXGradient* pgradient);
518 GXColorValue bgcolor,
519 GXGradient* pgradient);
525PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateBrushBitmap(GXBitmap bitmap,
530PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateBrushGradient(GXGradient gradient,
540PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXSysFontGetFamilyName(GXSysFont sysfont,
wchar_t* buffer,
size_t bufsize,
size_t* psize);
541PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXSysFontGetPostScriptName(GXSysFont sysfont,
wchar_t* buffer,
size_t bufsize,
size_t* psize);
542PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXSysFontGetFontName(GXSysFont sysfont,
wchar_t* buffer,
size_t bufsize,
size_t* psize);
543PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXSysFontGetStyle(GXSysFont sysfont,
GXFontStyle* pStyle);
544PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXSysFontGetFontFlags(GXSysFont sysfont, GXFontFlags* pFlags);
545PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXSysFontGetUnicodeRanges(GXSysFont sysfont,
GXUnicodeRange* buffer,
size_t bufsize,
size_t* psize);
548PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXSetDirectorySysFontsHandler(
const wchar_t* directory);
549PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXAddCustomSysFontsHandler(
const GXSysFontsHandler* handler,
void* handlerData, GXSysFontsHandlerID* phandlerId);
550PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXAddDirectorySysFontsHandler(
const wchar_t* directory, GXSysFontsHandlerID* phandlerId);
551PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRemoveSysFontsHandler(GXSysFontsHandlerID handlerId);
552PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXResetSysFontsHandlers(
void);
558PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateFontFaceFromFile(
const wchar_t* filename,
560 uint32_t* ptotalfaces,
561 GXFontFace* pfontface);
562PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateFontFaceFromMemory(
const void* data,
566 uint32_t* ptotalfaces,
567 GXFontFace* pfontface);
568PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceGetFamilyName(GXFontFace font,
wchar_t* buffer,
size_t bufsize,
size_t* psize);
569PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceGetPostScriptName(GXFontFace font,
wchar_t* buffer,
size_t bufsize,
size_t* psize);
570PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceGetFontName(GXFontFace font,
wchar_t* buffer,
size_t bufsize,
size_t* psize);
572PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceGetFontFlags(GXFontFace font, GXFontFlags* pFlags);
573PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceGetUnicodeRanges(GXFontFace font,
GXUnicodeRange* buffer,
size_t bufsize,
size_t* psize);
575PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceGetGlyphIndex(GXFontFace font, uint32_t unicode, uint32_t* pglyphindex);
576PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceGetGlyphAdvance(GXFontFace font, uint32_t glyphIndex, uint32_t* padvance);
577PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceRenderGlyphOutline(GXFontFace font, uint32_t glyphIndex,
const PDMatrix* transform, GXGeometry geom);
578PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceOpenFontStream(GXFontFace font, uint32_t tableTag, PDReadStream* pstream);
579PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceHasCharmap(GXFontFace font, uint16_t platformId, uint16_t encodingId,
bool* pResult);
581PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceGetNumVariationAxes(GXFontFace font,
size_t* pcount);
583PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceGetVariationAxisName(GXFontFace font, uint32_t tag,
wchar_t* buffer,
size_t bufsize,
size_t* psize);
584PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceGetNumVariationInstances(GXFontFace font,
size_t* pcount);
585PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceGetVariationInstanceName(GXFontFace font,
size_t index,
wchar_t* buffer,
size_t bufsize,
size_t* psize);
586PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXFontFaceGetVariationInstanceAxisValues(GXFontFace font,
size_t index,
GXFontVariationAxisValue* buffer,
size_t bufsize,
size_t* pcount);
594PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometrySetFillRule(GXGeometry geom,
GXFillRule fillrule);
595PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryGetFillRule(GXGeometry geom,
GXFillRule* pfillrule);
596PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryEmpty(GXGeometry geom,
bool* pempty);
597PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryPointsEqual(GXGeometry geomA,
600PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryGetCurrentPoint(GXGeometry geom,
PDPointF* ppoint);
601PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryGetBound(GXGeometry geom,
604PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryBeginFigure(GXGeometry geom,
const PDPointF* point);
605PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryEndFigure(GXGeometry geom);
606PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryEndFigureClose(GXGeometry geom);
607PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryLineTo(GXGeometry geom,
const PDPointF* to);
608PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryConicCurveTo(GXGeometry geom,
611PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryCubicCurveTo(GXGeometry geom,
615PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryRectangle(GXGeometry geom,
const PDRectF* rect);
616PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryEllipse(GXGeometry geom,
const PDRectF* bound);
617PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryRoundRectangle(GXGeometry geom,
621PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryCopy(GXGeometry geom, GXGeometry* pcopy);
622PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryTransform(GXGeometry geom,
624 GXGeometry* presult);
625PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryWiden(GXGeometry geom,
629 GXGeometry* presult);
630PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryCombine(GXGeometry geomA,
635 GXGeometry* presult);
636PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryHitTest(GXGeometry geom,
639PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometrySimplify(GXGeometry geom,
641 GXGeometry* presult);
642PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryIsRectangle(GXGeometry geom,
646PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryGetNumFigures(GXGeometry geom,
size_t* pnumfigures);
647PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryGetFigureNumSegments(GXGeometry geom,
size_t figureindex,
size_t* pnumsegs);
648PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryGetFigureNumPoints(GXGeometry geom,
size_t figureindex,
size_t* pnumpoints);
649PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryGetFigurePointsPtr(GXGeometry geom,
size_t figureindex,
const PDPointF** ppoints);
650PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryIsFigureSegmentCurve(GXGeometry geom,
size_t figureindex,
size_t segindex,
bool* iscurve);
651PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryGetFigureSegmentPointsIndex(GXGeometry geom,
size_t figureindex,
size_t segindex,
size_t* ppointsindex);
652PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXGeometryIsFigureClosed(GXGeometry geom,
size_t figureindex,
bool* pisclosed);
658PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateRegionFromRect(
const PDRectI* rect, GXRegion* pregion);
659PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRegionIsAreaEmpty(GXRegion region,
bool* pempty);
660PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRegionGetBound(GXRegion region,
PDRectI* pbound);
661PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRegionContainsPoint(GXRegion region,
664PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRegionContainsRect(GXRegion region,
667PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRegionContains(GXRegion region,
668 GXRegion that_region,
670PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRegionHasIntersection(GXRegion region,
671 GXRegion that_region,
673PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRegionHasIntersectionWithRect(GXRegion region,
676PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRegionOffset(GXRegion region,
int x,
int y);
677PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRegionCombine(GXRegion region,
678 GXRegion that_region,
681PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRegionCombineRect(GXRegion region,
685PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRegionEnumRects(GXRegion region,
686 GXRegionRectEnumProc proc,
693 GXRenderTarget* ptarget);
694PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateRenderTargetExtBuf(
void* pixels,
697 GXRenderTarget* ptarget);
700PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateRenderTargetHWND(
void* hwnd,
702 GXRenderTarget* ptarget);
703PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateRenderTargetPrintDC(
void* hdc, GXRenderTarget* ptarget);
704PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXCreateRenderTargetHDC(
void* hdc,
706 GXRenderTarget* ptarget);
709PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetGetPixelFormat(GXRenderTarget target,
711PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetGetSize(GXRenderTarget target,
PDSizeI* psize);
712PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetClear(GXRenderTarget target,
713 GXColorValue clear_color);
714PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetBeginPaint(GXRenderTarget target);
715PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetEndPaint(GXRenderTarget target);
716PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetPushState(GXRenderTarget target);
717PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetPopState(GXRenderTarget target);
718PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetGetCTM(GXRenderTarget target,
PDMatrix* pctm);
719PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetSetCTM(GXRenderTarget target,
const PDMatrix* ctm);
720PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetConcatCTM(GXRenderTarget target,
722PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetRotateCTM(GXRenderTarget target,
float radians);
723PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetScaleCTM(GXRenderTarget target,
float sx,
float sy);
724PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetTranslateCTM(GXRenderTarget target,
727PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetSetBlendMode(GXRenderTarget target,
729PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetSetStrokeAdjustment(GXRenderTarget target,
731PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetGetStrokeAdjustment(GXRenderTarget target,
733PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetSetOpacityMask(GXRenderTarget target,
736PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetSetShapeMask(GXRenderTarget target,
739PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetBeginLayer(GXRenderTarget target,
741PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetEndLayer(GXRenderTarget target);
742PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetFillGeometry(GXRenderTarget target,
745PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetFillTextGeometry(GXRenderTarget target,
748PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetFillRect(GXRenderTarget target,
751PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetFillEllipse(GXRenderTarget target,
754PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetStrokeGeometry(GXRenderTarget target,
759PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetStrokeLine(GXRenderTarget target,
765PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetStrokeRect(GXRenderTarget target,
770PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetStrokeEllipse(GXRenderTarget target,
775PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetClipGeometry(GXRenderTarget target, GXGeometry geom);
776PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetClipRect(GXRenderTarget target,
const PDRectF* rect);
777PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetClipEllipse(GXRenderTarget target,
779PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetDrawBitmap(GXRenderTarget target,
783PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetStretchBitmap(GXRenderTarget target,
788PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetDrawGradient(GXRenderTarget target,
791PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetFillMask(GXRenderTarget target,
795PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetInvertRect(GXRenderTarget target,
797PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetInvertLine(GXRenderTarget target,
800PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetFillText(GXRenderTarget target,
805PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetGetDrawBounds(GXRenderTarget target,
PDRectI* pbounds);
806PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetGetDpiX(GXRenderTarget target,
float* pdpix);
807PDF_CORE_API
PDErrCode PDFSDK_CALLCONV GXRenderTargetGetDpiY(GXRenderTarget target,
float* pdpiy);
int32_t PDErrCode
Definition errors.h:44
PDF_CORE_API PDErrCode PDFSDK_CALLCONV GXCreateBrushSolidARGB(GXColorValue argb, GXBrush *pbrush)
GXLockMode
Defines the level of access and control over the graphics content.
Definition graphics.h:99
@ kGXLockModeWrite
Definition graphics.h:101
@ kGXLockModeRead
Definition graphics.h:100
@ kGXLockModeReadWrite
Definition graphics.h:102
GXLineCap
Determines the style used to finish the ends of lines in a graphics context.
Definition graphics.h:225
@ kGXLineCapRound
Definition graphics.h:228
@ kGXLineCapSquare
Definition graphics.h:229
@ kGXLineCapFlat
Definition graphics.h:226
PDF_CORE_API PDErrCode PDFSDK_CALLCONV GXCreateRenderTargetBitmap(GXBitmap bitmap, GXRenderTarget *ptarget)
PDF_CORE_API PDErrCode PDFSDK_CALLCONV GXCreateBitmap(const GXBitmapAttrs *attrs, GXBitmap *pbitmap)
PDF_CORE_API PDErrCode PDFSDK_CALLCONV GXCreateFontFaceFromSysFont(GXSysFont sysfont, GXFontFace *pfontface)
GXFillRule
Determines how a path (a series or points that define a shape) is filled with color.
Definition graphics.h:129
@ kGXFillRuleNonZero
Definition graphics.h:130
@ kGXFillRuleEvenOdd
Definition graphics.h:134
PDF_CORE_API PDErrCode PDFSDK_CALLCONV GXBitmapCacheSetMemoryQuota(size_t quota)
GXInterpolationMode
Defines the way through which pixel values are estimated or interpolated.
Definition graphics.h:116
@ kGXInterpolationModeNearestNeighbor
Definition graphics.h:117
@ kGXInterpolationModeAreaAverage
Definition graphics.h:119
@ kGXInterpolationModeLinear
Definition graphics.h:118
GXRuntimeMode
Defines the runtime modes for the Graphics application.
Definition graphics.h:39
@ kGXRuntimeModePrint
Definition graphics.h:42
@ kGXRuntimeModeSoftware
Definition graphics.h:41
@ kGXRuntimeModeHardware
Definition graphics.h:40
GXBlendMode
Determines the way in which colors of overlapping objects are combined.
Definition graphics.h:148
@ kGXBlendModeDifference
Definition graphics.h:164
@ kGXBlendModeSaturation
Definition graphics.h:168
@ kGXBlendModeNormal
Definition graphics.h:149
@ kGXBlendModeExclusion
Definition graphics.h:165
@ kGXBlendModeColor
Definition graphics.h:170
@ kGXBlendModeLighten
Definition graphics.h:157
@ kGXBlendModeSoftLight
Definition graphics.h:162
@ kGXBlendModeDarken
Definition graphics.h:156
@ kGXBlendModeMultiply
Definition graphics.h:150
@ kGXBlendModeOverlay
Definition graphics.h:154
@ kGXBlendModeColorBurn
Definition graphics.h:158
@ kGXBlendModeColorDodge
Definition graphics.h:159
@ kGXBlendModeHardLight
Definition graphics.h:160
@ kGXBlendModeHue
Definition graphics.h:166
@ kGXBlendModeScreen
Definition graphics.h:152
@ kGXBlendModeLuminosity
Definition graphics.h:172
GXCombineMode
Determines how the areas of different graphics interact with each other.
Definition graphics.h:202
@ kGXCombineModeComplement
Definition graphics.h:207
@ kGXCombineModeUnion
Definition graphics.h:204
@ kGXCombineModeExclude
Definition graphics.h:206
@ kGXCombineModeDifference
Definition graphics.h:205
@ kGXCombineModeIntersect
Definition graphics.h:203
PDF_CORE_API PDErrCode PDFSDK_CALLCONV GXEnumSysFonts(GXSysFontEnumProc proc, void *userdata)
PDF_CORE_API PDErrCode PDFSDK_CALLCONV GXCreatePalette(const GXColorValue *colors, size_t num_colors, GXPalette *ppalette)
GXFontStyle
Defines the various styles that can be applied to text within a PDF document.
Definition graphics.h:328
@ kGXFontStyleRegular
Definition graphics.h:329
@ kGXFontStyleItalic
Definition graphics.h:330
@ kGXFontStyleBoldItalic
Definition graphics.h:332
@ kGXFontStyleBold
Definition graphics.h:331
GXMaskMode
Determines the type of mask used to control which parts of an image or graphical element are visible ...
Definition graphics.h:183
@ kGXMaskModeInverseAlpha
Definition graphics.h:187
@ kGXMaskModeLuminosity
Definition graphics.h:190
@ kGXMaskModeInverseLuminosity
Definition graphics.h:192
@ kGXMaskModeAlpha
Definition graphics.h:184
PDF_CORE_API PDErrCode PDFSDK_CALLCONV GXCreateGradientLinear(const GXLinearGradientAttrs *attrs, GXGradient *pgradient)
GXPixelFormat
Defines the pixel format of the graphics application.
Definition graphics.h:76
@ kGXPixelFormatP8
Definition graphics.h:87
@ kGXPixelFormatA8
Definition graphics.h:86
@ kGXPixelFormatXRGB8
Definition graphics.h:84
@ kGXPixelFormatARGB8p
Definition graphics.h:79
@ kGXPixelFormatUnknown
Definition graphics.h:77
@ kGXPixelFormatL1
Definition graphics.h:91
@ kGXPixelFormatRGB8
Definition graphics.h:78
@ kGXPixelFormatA1
Definition graphics.h:89
@ kGXPixelFormatL8
Definition graphics.h:88
@ kGXPixelFormatP1
Definition graphics.h:90
@ kGXPixelFormatARGB8
Definition graphics.h:82
PDF_CORE_API PDErrCode PDFSDK_CALLCONV GXCreateRegion(GXRegion *pregion)
PDF_CORE_API PDErrCode PDFSDK_CALLCONV GXEnableHWAccelerationForThread()
GXExtendMode
Defines the way embedded images or patterns within a PDF file are handled.
Definition graphics.h:309
@ kGXExtendModeClamp
Definition graphics.h:310
@ kGXExtendModeWrap
Definition graphics.h:312
@ kGXExtendModeMirror
Definition graphics.h:313
PDF_CORE_API PDErrCode PDFSDK_CALLCONV GXCreateGeometry(GXGeometry *pgeom)
GXLineJoin
Determines the shape that is used to connect the endpoints of two line segments that meet at a corner...
Definition graphics.h:239
@ kGXLineJoinRound
Definition graphics.h:241
@ kGXLineJoinBevel
Definition graphics.h:242
@ kGXLineJoinMiter
Definition graphics.h:240
Definition graphics.h:265
Definition graphics.h:317
Definition graphics.h:252
Definition graphics.h:335
Definition graphics.h:376
Definition graphics.h:371
Definition graphics.h:272
Definition graphics.h:210
Definition graphics.h:277
Definition graphics.h:105
Definition graphics.h:299
Definition graphics.h:287
Definition graphics.h:258
Definition graphics.h:395
Definition graphics.h:409
Definition graphics.h:366
Definition math_types.h:60
Definition math_types.h:12
Definition math_types.h:18
Definition math_types.h:30
Definition math_types.h:44
Definition math_types.h:38