PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
PDF::Graphics::RenderTarget Class Reference

Represents a render target. More...

#include <pdfsdk/cxx/graphics.h>

Inheritance diagram for PDF::Graphics::RenderTarget:

Classes

class  CTMScope
 
class  PaintScope
 
class  StateScope
 

Public Member Functions

GXPixelFormat GetPixelFormat ()
 
SizeI GetSize ()
 
void Clear (GXColorValue clrcolor)
 
void BeginPaint ()
 
bool EndPaint ()
 
void PushState ()
 
void PopState ()
 
Matrix GetCTM () const
 
void SetCTM (const Matrix &ctm)
 
void ConcatCTM (const Matrix &xform)
 
void RotateCTM (float radians)
 
void ScaleCTM (float scale)
 
void ScaleCTM (float sx, float sy)
 
void ScaleCTM (const SizeF &scale)
 
void TranslateCTM (float dx, float dy)
 
void TranslateCTM (const PointF &delta)
 
void SetBlendMode (GXBlendMode mode)
 
void SetStrokeAdjustment (bool adjust)
 
bool GetStrokeAdjustment () const
 
void SetOpacityMask (GXMaskMode mode, const Brush &mask)
 
void SetShapeMask (GXMaskMode mode, const Brush &mask)
 
void BeginLayer (const GXLayerParams &params)
 
void EndLayer ()
 
void FillGeometry (const Geometry &geom, const Brush &brush)
 
void FillTextGeometry (const Geometry &geom, const Brush &brush)
 
void FillRect (const RectF &rect, const Brush &brush)
 
void FillEllipse (const RectF &bound, const Brush &brush)
 
void StrokeGeometry (const Geometry &geom, const Brush &brush, float width, const GXStrokeParams *params=nullptr)
 
void StrokeLine (const PointF &start, const PointF &end, const Brush &brush, float width, const GXStrokeParams *params=nullptr)
 
void StrokeRect (const RectF &rect, const Brush &brush, float width, const GXStrokeParams *params=nullptr)
 
void StrokeEllipse (const RectF &bound, const Brush &brush, float width, const GXStrokeParams *params=nullptr)
 
void ClipGeometry (const Geometry &geom)
 
void ClipRect (const RectF &rect)
 
void ClipEllipse (const RectF &bound)
 
void DrawBitmap (const Bitmap &bitmap, float opacity=1, GXInterpolationMode imode=kGXInterpolationModeAreaAverage)
 
void StretchBitmap (const Bitmap &bitmap, const RectF &target_rect, float opacity=1, GXInterpolationMode imode=kGXInterpolationModeAreaAverage)
 
void DrawGradient (const Gradient &gradient, float opacity)
 
void FillMask (const Bitmap &mask, const Brush &brush, GXInterpolationMode imode=kGXInterpolationModeAreaAverage)
 
void InvertRect (const RectF &rect)
 
void InvertLine (const PointI &start, const PointI &end)
 
void FillText (const FontFace &font, float fontSize, const std::wstring &text, const Brush &brush)
 
RectI GetDrawBounds ()
 
float GetDpiX () const
 
float GetDpiY () const
 
 RenderTarget (GXRenderTarget handle, bool adopt=false) noexcept
 
 RenderTarget (const RenderTarget &rhs) noexcept
 
RenderTargetoperator= (const RenderTarget &rhs) noexcept
 
 RenderTarget (RenderTarget &&rhs) noexcept
 
RenderTargetoperator= (RenderTarget &&rhs) noexcept
 

Static Public Member Functions

static RenderTarget NewBitmapRenderTarget (const Bitmap &bitmap)
 
static RenderTarget NewExtBufRenderTarget (void *pixels, int stride, const SizeI &size, GXPixelFormat format, float dpiX=96, float dpiY=96)
 

Detailed Description

Represents a render target.

See also
GXRenderTarget

The documentation for this class was generated from the following file: