Show / Hide Table of Contents

    Class DrawingContext

    Drawing Context.

    Inheritance
    Object
    DispatcherObject
    DrawingContext
    Implements
    IDisposable
    Inherited Members
    DispatcherObject.CheckAccess()
    DispatcherObject.VerifyAccess()
    DispatcherObject.Dispatcher
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: nanoFramework.Presentation.Media
    Assembly: nanoFramework.Graphics.dll
    Syntax
    public class DrawingContext : DispatcherObject, IDisposable

    Constructors

    | Improve this Doc View Source

    DrawingContext(Bitmap)

    Declaration
    public DrawingContext(Bitmap bmp)
    Parameters
    Type Name Description
    Bitmap bmp
    | Improve this Doc View Source

    DrawingContext(Int32, Int32)

    Declaration
    public DrawingContext(int width, int height)
    Parameters
    Type Name Description
    Int32 width
    Int32 height

    Properties

    | Improve this Doc View Source

    Bitmap

    Declaration
    public Bitmap Bitmap { get; }
    Property Value
    Type Description
    Bitmap
    | Improve this Doc View Source

    Height

    Declaration
    public int Height { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    Width

    Declaration
    public int Width { get; }
    Property Value
    Type Description
    Int32

    Methods

    | Improve this Doc View Source

    BlendImage(Bitmap, Int32, Int32, Int32, Int32, Int32, Int32, UInt16)

    Declaration
    public void BlendImage(Bitmap source, int destinationX, int destinationY, int sourceX, int sourceY, int sourceWidth, int sourceHeight, ushort opacity)
    Parameters
    Type Name Description
    Bitmap source
    Int32 destinationX
    Int32 destinationY
    Int32 sourceX
    Int32 sourceY
    Int32 sourceWidth
    Int32 sourceHeight
    UInt16 opacity
    | Improve this Doc View Source

    Clear()

    Declaration
    public void Clear()
    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing
    | Improve this Doc View Source

    DrawEllipse(Brush, Pen, Int32, Int32, Int32, Int32)

    Declaration
    public void DrawEllipse(Brush brush, Pen pen, int x, int y, int xRadius, int yRadius)
    Parameters
    Type Name Description
    Brush brush
    Pen pen
    Int32 x
    Int32 y
    Int32 xRadius
    Int32 yRadius
    | Improve this Doc View Source

    DrawImage(Bitmap, Int32, Int32)

    Declaration
    public void DrawImage(Bitmap source, int x, int y)
    Parameters
    Type Name Description
    Bitmap source
    Int32 x
    Int32 y
    | Improve this Doc View Source

    DrawImage(Bitmap, Int32, Int32, Int32, Int32, Int32, Int32)

    Declaration
    public void DrawImage(Bitmap source, int destinationX, int destinationY, int sourceX, int sourceY, int sourceWidth, int sourceHeight)
    Parameters
    Type Name Description
    Bitmap source
    Int32 destinationX
    Int32 destinationY
    Int32 sourceX
    Int32 sourceY
    Int32 sourceWidth
    Int32 sourceHeight
    | Improve this Doc View Source

    DrawLine(Pen, Int32, Int32, Int32, Int32)

    Declaration
    public void DrawLine(Pen pen, int x0, int y0, int x1, int y1)
    Parameters
    Type Name Description
    Pen pen
    Int32 x0
    Int32 y0
    Int32 x1
    Int32 y1
    | Improve this Doc View Source

    DrawPolygon(Brush, Pen, Int32[])

    Declaration
    public void DrawPolygon(Brush brush, Pen pen, int[] pts)
    Parameters
    Type Name Description
    Brush brush
    Pen pen
    Int32[] pts
    | Improve this Doc View Source

    DrawRectangle(Brush, Pen, Int32, Int32, Int32, Int32)

    Declaration
    public void DrawRectangle(Brush brush, Pen pen, int x, int y, int width, int height)
    Parameters
    Type Name Description
    Brush brush
    Pen pen
    Int32 x
    Int32 y
    Int32 width
    Int32 height
    | Improve this Doc View Source

    DrawText(String, Font, Color, Int32, Int32)

    Declaration
    public void DrawText(string text, Font font, Color color, int x, int y)
    Parameters
    Type Name Description
    String text
    Font font
    Color color
    Int32 x
    Int32 y
    | Improve this Doc View Source

    DrawText(ref String, Font, Color, Int32, Int32, Int32, Int32, TextAlignment, TextTrimming)

    Declaration
    public bool DrawText(ref string text, Font font, Color color, int x, int y, int width, int height, TextAlignment alignment, TextTrimming trimming)
    Parameters
    Type Name Description
    String text
    Font font
    Color color
    Int32 x
    Int32 y
    Int32 width
    Int32 height
    TextAlignment alignment
    TextTrimming trimming
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    GetClippingRectangle(out Int32, out Int32, out Int32, out Int32)

    Declaration
    public void GetClippingRectangle(out int x, out int y, out int width, out int height)
    Parameters
    Type Name Description
    Int32 x
    Int32 y
    Int32 width
    Int32 height
    | Improve this Doc View Source

    GetTranslation(out Int32, out Int32)

    Declaration
    public void GetTranslation(out int x, out int y)
    Parameters
    Type Name Description
    Int32 x
    Int32 y
    | Improve this Doc View Source

    PopClippingRectangle()

    Declaration
    public void PopClippingRectangle()
    | Improve this Doc View Source

    PushClippingRectangle(Int32, Int32, Int32, Int32)

    Declaration
    public void PushClippingRectangle(int x, int y, int width, int height)
    Parameters
    Type Name Description
    Int32 x
    Int32 y
    Int32 width
    Int32 height
    | Improve this Doc View Source

    RotateImage(Int32, Int32, Int32, Bitmap, Int32, Int32, Int32, Int32, UInt16)

    Declaration
    public void RotateImage(int angle, int destinationX, int destinationY, Bitmap bitmap, int sourceX, int sourceY, int sourceWidth, int sourceHeight, ushort opacity)
    Parameters
    Type Name Description
    Int32 angle
    Int32 destinationX
    Int32 destinationY
    Bitmap bitmap
    Int32 sourceX
    Int32 sourceY
    Int32 sourceWidth
    Int32 sourceHeight
    UInt16 opacity
    | Improve this Doc View Source

    Scale9Image(Int32, Int32, Int32, Int32, Bitmap, Int32, Int32, Int32, Int32, UInt16)

    Declaration
    public void Scale9Image(int xDst, int yDst, int widthDst, int heightDst, Bitmap bitmap, int leftBorder, int topBorder, int rightBorder, int bottomBorder, ushort opacity)
    Parameters
    Type Name Description
    Int32 xDst
    Int32 yDst
    Int32 widthDst
    Int32 heightDst
    Bitmap bitmap
    Int32 leftBorder
    Int32 topBorder
    Int32 rightBorder
    Int32 bottomBorder
    UInt16 opacity
    | Improve this Doc View Source

    SetPixel(Color, Int32, Int32)

    Declaration
    public void SetPixel(Color color, int x, int y)
    Parameters
    Type Name Description
    Color color
    Int32 x
    Int32 y
    | Improve this Doc View Source

    StretchImage(Int32, Int32, Int32, Int32, Bitmap, Int32, Int32, Int32, Int32, UInt16)

    Declaration
    public void StretchImage(int xDst, int yDst, int widthDst, int heightDst, Bitmap bitmap, int xSrc, int ySrc, int widthSrc, int heightSrc, ushort opacity)
    Parameters
    Type Name Description
    Int32 xDst
    Int32 yDst
    Int32 widthDst
    Int32 heightDst
    Bitmap bitmap
    Int32 xSrc
    Int32 ySrc
    Int32 widthSrc
    Int32 heightSrc
    UInt16 opacity
    | Improve this Doc View Source

    TileImage(Int32, Int32, Bitmap, Int32, Int32, UInt16)

    Declaration
    public void TileImage(int xDst, int yDst, Bitmap bitmap, int width, int height, ushort opacity)
    Parameters
    Type Name Description
    Int32 xDst
    Int32 yDst
    Bitmap bitmap
    Int32 width
    Int32 height
    UInt16 opacity
    | Improve this Doc View Source

    Translate(Int32, Int32)

    Declaration
    public void Translate(int dx, int dy)
    Parameters
    Type Name Description
    Int32 dx
    Int32 dy

    Implements

    IDisposable

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018 nanoFramework Contributors
    Generated by DocFX