Loads the specified image. If the image name ends with @2x (without the extension) then the image scale is considered to be 2. If you load an image named image1.png. And in the same folder there is also an image named image1@2x.png then on a high resolution device image1@2x.png will be loaded and the image scale will be set to 2.
Initialize2 (InputStreamAsInputStream)
Reads a bitmap from the input stream.
IsInitializedAsBoolean
Tests whether this object was initialized.
TagAsObject
Gets or sets the Tag object. This is a placeholder for any object you like to tie to this object.
Writes the image to the output stream. Quality - Value between 0 (smaller size, lower quality) to 100 (larger size, higher quality). Format - JPEG or PNG.
Canvas is used for drawing over other views. The drawings will only be updated after a call to Canvas.Refresh. Note that you should call Canvas.Release when it is no longer used. If the hosting is resized then the canvas should be released and initialized again.
Draws a circle. x / y - Circle center. Radius - Circle radius. Color - Drawing color. Filled - Whether to fill the circle interior. StrokeWidth - The circle border width.
DrawColor (ColorAsInt)
Fills the entire canvas with the given color. Note that you can use ClipPath to clip the drawings to a specific region.
Draws or fills the given path. Path - The Path that will be filled or drawn. Colors - Drawing color. Filled - Whether to fill the path. StrokeWidth - The border drawing width.
Draws a PDF page in the DestRect rectangle. Document - PDF Document. PageNumber - The page to draw. Note that the first page number is 1. DestRect - Destination rectangle.
Draws a rectangle. Rect1 - Rectangle coordinates. Color - Drawing color. Filled - Whether to fill the rectangle interior. StrokeWidth - The rectangle border width.
Draws the given text. Text - Text to draw. x, y - Origin point. Font - Font to use for drawing. Color - Drawing color. Align - Text alignment related to the origin point. One of the following values: LEFT, CENTER or RIGHT.
Initializes a canvas that will create a PDF document. The default size of PDF documents is 612 x 792. Dir / FileName - PDF file to create. Width - Document width. Height Document height;
NextPDFPage
Moves the canvas to the next page. Should only be used when the canvas was initialized with InitializePDF.
Refresh
Applies the changes done. You must call Refresh for the drawings to be applied.
Release
Releases the canvas resources. You can safely call this method multiple times or before the canvas was initialized.
RemoveClip
Removes the last clipping set with ClipPath.
TargetRectAsRect [read only]
Returns the canvas drawing rectangle;
TileBitmap (BitmapAsBitmap, DestRectAsRect)
Tiles the given bitmap in the DestRect rectangle. Note that the bitmap will be drawn upside down.