Click or drag to resize
BaseContext Class
Defines a context for drawing.
Inheritance Hierarchy
SystemObject
  RasterEdge.Imaging.BasicBaseContext
    RasterEdge.XDoc.PDFPDFContext
    RasterEdge.XDoc.TIFFTIFFContext

Namespace: RasterEdge.Imaging.Basic
Assembly: RasterEdge.Imaging.Basic (in RasterEdge.Imaging.Basic.dll) Version: 9.8.7.60526 (9.8.7.60526)
Syntax
public abstract class BaseContext

The BaseContext type exposes the following members.

Methods
  NameDescription
Public methodCreateContext
Create a new context . This API is designed to solve problem caused by reflection.
Public methodDrawChar(BaseBrush, Single, Single, BaseChar)
Draws the specified char at the specified location with the specified BaseBrush objects.
Public methodDrawChar(BaseBrush, REMatrix, Single, Single, BaseChar, Boolean)
Draws the specified char at the specified location with the specified BaseBrush objects.
Public methodDrawChar(BaseBrush, REMatrix, Units, Single, Single, BaseChar, Boolean)
Draw a char in the coordinate ,(x,y) point is used for char's left-top position .
Public methodDrawEllipse(REPen, Single, Single, Single, Single)
Draws an ellipse defined by a bounding rectangle which specified by a pair of coordinates (for its top left corner), rectangle width and height.
Public methodDrawEllipse(REPen, REMatrix, Single, Single, Single, Single)
Draws an ellipse defined by a bounding rectangle which specified by a pair of coordinates (for its top left corner), rectangle width and height.
Public methodDrawEllipse(REPen, REMatrix, Units, Single, Single, Single, Single)
Draw an ellipse defined by a bounding rectangle which specified by a pair of coordinates (for its top left corner), rectangle width and height.
Public methodDrawImage(Single, Single, BaseImage)
Draws the specified BaseImage object, using its original physical size, at the specified location.
Public methodDrawImage(Single, Single, Bitmap)
Draws the specified System.Drawing.Image object, using its original physical size, at the specified location.
Public methodDrawImage(REMatrix, Single, Single, BaseImage)
Draws the specified BaseImage object, using its original physical size, at the specified location.
Public methodDrawImage(REMatrix, Single, Single, Bitmap)
Draws the specified System.Drawing.Image object, using its original physical size, at the specified location.
Public methodDrawImage(REMatrix, Units, Single, Single, BaseImage)
Draw an image
Public methodDrawImage(REMatrix, Units, Single, Single, Bitmap)
Draw an image ,use (x,y) as image's left-top position
Public methodDrawImageInRectangle(Single, Single, Single, Single, BaseImage)
Draws the specified BaseImage object at the specified location and with the specified size.
Public methodDrawImageInRectangle(REMatrix, Single, Single, Single, Single, BaseImage)
Draws the specified BaseImage object at the specified location and with the specified size.
Public methodDrawImageInRectangle(REMatrix, Units, Single, Single, Single, Single, BaseImage)
Draw an image in specified rectangle.Image will not exceed rectangle.
Public methodDrawImageInRectangle(REMatrix, Units, Single, Single, Single, Single, Bitmap)
Draw an image in specified rectangle.Image will not exceed rectangle.
Public methodDrawItem(Single, Single, REItem)
Draws the specified REItem object, at the specified location.
Public methodDrawItem(REMatrix, Single, Single, REItem)
Draws the specified REItem object, at the specified location.
Public methodDrawItem(REMatrix, Units, Single, Single, REItem)
Draw an item ,use (x,y) as item's left-top position
Public methodDrawLine(REPen, Single, Single, Single, Single)
Draws a line connecting the two points specified by coordinate pairs.
Public methodDrawLine(REPen, REMatrix, Single, Single, Single, Single)
Draws a line connecting the two points specified by coordinate pairs.
Public methodDrawLine(REPen, REMatrix, Units, Single, Single, Single, Single)
Draw a line
Public methodDrawPath(REPen, REPath)
Draws a path .
Public methodDrawPath(REPen, REMatrix, REPath)
Draws a path .
Public methodDrawRectangle(REPen, Single, Single, Single, Single)
Public methodDrawRectangle(REPen, REMatrix, Single, Single, Single, Single)
Draws an rectangle defined by a bounding rectangle which specified by a pair of coordinates (for its top left corner), rectangle width and height.
Public methodDrawRectangle(REPen, REMatrix, Units, Single, Single, Single, Single)
Draw a rectangle defined by a bounding rectangle specified by a pair of coordinates (for its top left corner), rectangle width and height.
Public methodDrawString(BaseBrush, Single, Single, REString)
Draws the specified REString object, at the specified location.
Public methodDrawString(BaseBrush, REMatrix, Single, Single, REString)
Draw a String ,use (x,y) as item's left-top position
Public methodDrawString(BaseBrush, REMatrix, Units, Single, Single, REString)
Draw a String ,use (x,y) as item's left-top position
Public methodDrawStringInRectangle(BaseBrush, Single, Single, Single, Single, REString)
Draws the specified REString object at the specified location and with the specified size. If the string will exceed one line , a line-feed will occur .If There is no more room for next line ,the string will not show.
Public methodDrawStringInRectangle(BaseBrush, REMatrix, Single, Single, Single, Single, REString)
Draw a String in specified rectangle.If String content will exceed the rectangle ,automatic linefeed will occur. Furthermore ,if string content have filled the rectangle .the rest string will omitted in this context.
Public methodDrawStringInRectangle(BaseBrush, REMatrix, Units, Single, Single, Single, Single, REString)
Draws the specified REString object at the specified location and with the specified size. If the string will exceed one line , a line-feed will occur .If There is no more room for next line ,the string will not show.
Public methodFillClip
Deprecated
Public methodFillEllipse(BaseBrush, Single, Single, Single, Single)
Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates (for its top left corner), rectangle width and height.
Public methodFillEllipse(BaseBrush, REMatrix, Single, Single, Single, Single)
Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates (for its top left corner), rectangle width and height.
Public methodFillEllipse(BaseBrush, REMatrix, Units, Single, Single, Single, Single)
Fill the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates (for its top left corner), rectangle width and height.
Public methodFillPath(BaseBrush, REPath)
Fills a path
Public methodFillPath(BaseBrush, REMatrix, REPath)
Fills a path
Public methodFillRectangle(BaseBrush, Single, Single, Single, Single)
Public methodFillRectangle(BaseBrush, REMatrix, Single, Single, Single, Single)
Fills the interior of an rectangle defined by a bounding rectangle specified by a pair of coordinates (for its top left corner), rectangle width and height.
Public methodFillRectangle(BaseBrush, REMatrix, Units, Single, Single, Single, Single)
Fill the interior of a rectangle defined by a bounding rectangle specified by a pair of coordinates (for its top left corner), rectangle width and height.
Public methodGetBitmap
Applies drawing for all contents in the context and converts it to a Bitmap object with current resolution setting. For Internal Use Only.
Public methodGetClip
Return Context's clip path.If Context have no Clip in current ,null will return
Public methodGetContextText
Gets all characters in the context. The order of these characters depends on the sequence of their drawing operators.
Public methodGetHeight
Gets context height in unit.
Public methodGetHorizontalResolution
Gets context horizontal resolution.
Public methodGetTextOperators
Gets all operators for drawing a character or string.
Public methodGetUnits
Gets context unit.
Public methodGetVerticalResolution
Gets context vertical resolution.
Public methodGetWidth
Gets context width in unit.
Public methodIsSaveJsonFile
this method is just used in svgcontext.
Public methodRenderToStream(Stream)
Applies drawing for all contents in the context and output to a stream. The inside format of the destination stream depends on the type of the context.
Public methodRenderToStream(BaseDocument, Stream)
PDF Tiff implement only Renders the srouce document to this context and saves it to stream.
Public methodRenderToStream(BaseDocument, Int32, Stream)
Tiff PDF context support only . Renders the srouce document to this context and saves it to stream.
Public methodRenderToStream(BaseDocument, Stream, ImageOutputOption)
Public methodRenderToStream(BaseDocument, Single, Stream)
PDF Tiff implement only Renders the srouce document to this context and saves it to stream.
Public methodResetClip
Removes the setting of the clipping area.
Public methodSaveHtml
Public methodSaveToFile
Applies drawing for all contents in the context and output to a file. Format of the output file depends on the type of the context.
Public methodSaveVectorImage(BasePage, String, String, RelativeType)
Public methodSaveVectorImage(BasePage, String, String, RelativeType, Int32)
Converts page to the target type file format with sepcified file name and saves it to a file on the local disk.
Public methodSetBackGroundColor
Sets background color for the context. Background color could be transparent.
Public methodSetClip(REPath)
Sets the clipping region of this context to the specified REPath object.
Public methodSetClip(ListREPath)
Only used in PDF ,Not recommended
Public methodSetClip(REPath, REMatrix)
Sets a clipping area that defined by the given path.
Public methodSetClip(ListREPath, REMatrix)
Only used in PDF ,Not recommended Sets a clipping area that defined by the intersection of a list of pathes.
Public methodSetCompression
Public methodSetContextRotate
Set Context Rotate angle such 90 degree,180 ,etc If Other value is assigned ,Context will not rotate Only PDF Project use this interface currently
Public methodSetDocumentType
For internal use only Used to decide which document need convert ,and use specified methods to optimise Only SVG need implement this function
Public methodSetFontUrlPath
For internal use only This is used for SVGContext save font url only.
Public methodSetHeight
Sets context height in unit
Public methodSetHorizontalResolution(Int32)
Sets context horizontal resolution, default value is 96 pixels per inch.
Public methodSetHorizontalResolution(Single)
Sets context horizental resolution, default value is 96 pixels per inch.
Public methodSetHyperlink
Transmit information of hyperlink
Public methodSetResolution(Int32, Int32)
Sets context horizental and vertical resolutions, default value is 96 pixels per inch.
Public methodSetResolution(Single, Single)
Sets context horizental and vertical resolutions, default value is 96 pixels per inch.
Public methodSetResourcePath
Used to storage Context need resource such as :font , image ,etc .If this context have resource . If failed , -1 will returned
Public methodSetValidRegion
This interface is designed for crop Context's show region After Set Context's valid region .Context's width/height will be change to width ,height This action result in context only shows a part of context's region . Width/height must be positive ,otherwise ,this operation will ceased and return
Public methodSetVerticalReoslution(Int32)
Sets context vertical resolution, default value is 96 pixels per inch.
Public methodSetVerticalReoslution(Single)
Sets context vertical resolution, default value is 96 pixels per inch.
Public methodSetWidth
Sets context width in unit
Top
See Also