PDFRenderingSurface¶
Namespace: O2S.Components.PDF4NET.Rendering.RenderingSurfaces
Defines an abstract rendering surface.
Inheritance Object → PDFRenderingSurface
Implements IImageDataProvider
Fields¶
Constructors¶
PDFRenderingSurface()¶
Initializes a new PDFRenderingSurface object.
Properties¶
Height¶
Gets or sets the surface height.
Property Value
Int32
The height of the surface in pixels.
Width¶
Gets the surface width.
Property Value
Int32
The width of the surface in pixels.
Methods¶
ConvertFromBgra()¶
Converts the surface from BGRA to its native format.
Remarks
Aurora Native and GDI+ engines use BGRA format, Aurora Managed uses ARGB int and BGRA byte.
ConvertFromRgba()¶
Converts the surface from BGRA to its native format.
Remarks
Aurora CoreGraphics uses RGBA byte format.
FlipVertical()¶
Flips the surface bottom-up
Save(String, PDFPageImageFormat)¶
Saves the rendering surface to the specified file.
Parameters
fileName String
Path to file where the rendering surface is saved.
format PDFPageImageFormat
Image format for saving the rendering surface
Save(String, PDFRendererSettings, PDFPageImageFormat)¶
Saves the rendering surface to the specified file.
Parameters
fileName String
Path to file where the rendering surface is saved.
settings PDFRendererSettings
The settings that were used when the rendering surface was generated
format PDFPageImageFormat
Image format for saving the rendering surface
Save(Stream, PDFPageImageFormat)¶
Saves the rendering surface to the specified stream.
Parameters
stream Stream
Stream where the rendering surface is saved.
format PDFPageImageFormat
Image format for saving the rendering surface
Save(Stream, PDFRendererSettings, PDFPageImageFormat)¶
Saves the rendering surface to the specified stream.
Parameters
stream Stream
Stream where the rendering surface is saved.
settings PDFRendererSettings
The settings that were used when the rendering surface was generated
format PDFPageImageFormat
Image format for saving the rendering surface