Search Results for

    Show / Hide Table of Contents

    Class Bitmap

    Encapsulates a bitmap, which consists of the pixel data for a graphics image and its methods and attributes This class cannot be inherited.The.NET Micro Framework provides the

    Inheritance
    object
    MarshalByRefObject
    Bitmap
    Implements
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: nanoFramework.UI
    Assembly: nanoFramework.Graphics.dll
    Syntax
    public sealed class Bitmap : MarshalByRefObject, IDisposable

    Constructors

    Bitmap(byte[], BitmapImageType)

    Not docummented yet.

    Declaration
    public Bitmap(byte[] imageData, Bitmap.BitmapImageType type)
    Parameters
    Type Name Description
    byte[] imageData

    An array of pixel data for the specified image.

    Bitmap.BitmapImageType type

    The bitmap type for the specified image.

    Bitmap(int, int)

    Encapsulates a bitmap, which consists of the pixel data for a graphics image and its methods and attributes.

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

    The width of the bitmap.

    int height

    The height of the bitmap.

    Fields

    BLACKNESS

    Fills the destination rectangle with the color associated with index number 0 in the physical palette.

    Declaration
    public const int BLACKNESS = 4
    Field Value
    Type Description
    int

    CenterX

    Represents the x-coordinate location of the center of the display device, in pixels.

    Declaration
    public static readonly int CenterX
    Field Value
    Type Description
    int

    CenterY

    Represents the y-coordinate location of the center of the display device, in pixels.

    Declaration
    public static readonly int CenterY
    Field Value
    Type Description
    int

    DSTDKGRAY

    Fills the destination rectangle with a dark gray color.

    Declaration
    public const int DSTDKGRAY = 8
    Field Value
    Type Description
    int

    DSTGRAY

    Fills the destination rectangle with a gray color.

    Declaration
    public const int DSTGRAY = 6
    Field Value
    Type Description
    int

    DSTINVERT

    Inverts the destination rectangle.

    Declaration
    public const int DSTINVERT = 3
    Field Value
    Type Description
    int

    DSTLTGRAY

    Fills the destination rectangle with a light gray color.

    Declaration
    public const int DSTLTGRAY = 7
    Field Value
    Type Description
    int

    DT_AlignmentCenter

    Specifies that text is center-aligned as it flows around a bitmap.

    Declaration
    public const uint DT_AlignmentCenter = 2
    Field Value
    Type Description
    uint

    DT_AlignmentLeft

    Specifies that text is left-aligned as it flows around a bitmap.

    Declaration
    public const uint DT_AlignmentLeft = 0
    Field Value
    Type Description
    uint

    DT_AlignmentMask

    Specifies that you can use a mask to get or set text alignment around a bitmap.

    Declaration
    public const uint DT_AlignmentMask = 34
    Field Value
    Type Description
    uint

    DT_AlignmentRight

    Specifies that text is right-aligned as it flows around a bitmap.

    Declaration
    public const uint DT_AlignmentRight = 32
    Field Value
    Type Description
    uint

    DT_Ellipsis

    Specifies that the bitmap text is trimmed to the nearest character, and an ellipsis is inserted at the end of each trimmed line.

    Declaration
    public const uint DT_Ellipsis = 8
    Field Value
    Type Description
    uint

    DT_IgnoreHeight

    Specifies that if the bitmap text is larger than the space provided, the text is drawn in its full size, rather than being scaled down to fit the value in the Height property.

    Declaration
    public const uint DT_IgnoreHeight = 16
    Field Value
    Type Description
    uint

    DT_None

    Specifies that there are no format rules.

    Declaration
    public const uint DT_None = 0
    Field Value
    Type Description
    uint

    DT_TrimmingCharacterEllipsis

    Not yet documented.

    Declaration
    public const uint DT_TrimmingCharacterEllipsis = 64
    Field Value
    Type Description
    uint

    DT_TrimmingMask

    Not yet documented.

    Declaration
    public const uint DT_TrimmingMask = 72
    Field Value
    Type Description
    uint

    DT_TrimmingNone

    Not yet documented.

    Declaration
    public const uint DT_TrimmingNone = 0
    Field Value
    Type Description
    uint

    DT_TrimmingWordEllipsis

    Not yet documented.

    Declaration
    public const uint DT_TrimmingWordEllipsis = 8
    Field Value
    Type Description
    uint

    DT_TruncateAtBottom

    Specifies that if the bitmap text is larger than the space provided, the text is truncated at the bottom.

    Declaration
    public const uint DT_TruncateAtBottom = 4
    Field Value
    Type Description
    uint

    DT_WordWrap

    Specifies whether a line of bitmap text automatically wraps words to the beginning of the next line when the line reaches its maximum width.

    Declaration
    public const uint DT_WordWrap = 1
    Field Value
    Type Description
    uint

    MaxHeight

    Specifies the maximum height of the display device, in pixels.

    Declaration
    public static readonly int MaxHeight
    Field Value
    Type Description
    int

    MaxWidth

    Specifies the maximum width of the display device, in pixels.

    Declaration
    public static readonly int MaxWidth
    Field Value
    Type Description
    int

    OpacityOpaque

    Specifies that the current bitmap is opaque.

    Declaration
    public const ushort OpacityOpaque = 256
    Field Value
    Type Description
    ushort

    OpacityTransparent

    Specifies that the current bitmap is transparent.

    Declaration
    public const ushort OpacityTransparent = 0
    Field Value
    Type Description
    ushort

    PATINVERT

    Inverts the source rectangle.

    Declaration
    public const int PATINVERT = 2
    Field Value
    Type Description
    int

    RANDOM

    Fills the destination rectangle or circle with a randomly generated pattern.

    Declaration
    public const int RANDOM = 10
    Field Value
    Type Description
    int

    SINGLEPIXEL

    Specifies that a circle should have only a single-pixel border and no fill pattern or color.

    Declaration
    public const int SINGLEPIXEL = 9
    Field Value
    Type Description
    int

    SRCCOPY

    Copies the source rectangle directly to the destination rectangle.

    Declaration
    public const int SRCCOPY = 1
    Field Value
    Type Description
    int

    WHITENESS

    Fills the destination rectangle with the color associated with index number 1 in the physical palette.

    Declaration
    public const int WHITENESS = 5
    Field Value
    Type Description
    int

    Properties

    Height

    Gets the height of the current bitmap.

    Declaration
    public int Height { get; }
    Property Value
    Type Description
    int

    Width

    Gets the width of the current bitmap.

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

    Methods

    Clear()

    Clears the entire drawing surface.

    Declaration
    public void Clear()

    Dispose()

    Declaration
    public void Dispose()

    DrawChar(ushort, int, int, Color, Font)

    Draws a single character to the screen.

    Declaration
    public void DrawChar(ushort c, int x, int y, Color color, Font font)
    Parameters
    Type Name Description
    ushort c

    The character to draw.

    int x

    The x-coordinate of the upper-left corner to draw to.

    int y

    The y-coordinate of the upper-left corner to draw to.

    Color color

    The color to be used for the character.

    Font font

    The font to be used for the character.

    DrawEllipse(Color, int, int, int, int, int, Color, int, int, Color, int, int, ushort)

    Draws an ellipse filled with a specified color gradient.

    Declaration
    public void DrawEllipse(Color colorOutline, int thicknessOutline, int x, int y, int xRadius, int yRadius, Color colorGradientStart, int xGradientStart, int yGradientStart, Color colorGradientEnd, int xGradientEnd, int yGradientEnd, ushort opacity)
    Parameters
    Type Name Description
    Color colorOutline

    The outline color.

    int thicknessOutline

    The thickness of the ellipse's outline, in pixels.

    int x

    The x-coordinate location of the center of the ellipse.

    int y

    The y-coordinate location of the center of the ellipse.

    int xRadius

    The radius of the ellipse in the x-coordinate direction.

    int yRadius

    The radius of the ellipse in the y-coordinate direction.

    Color colorGradientStart

    The starting color of the color gradient.

    int xGradientStart

    The x-coordinate location of the starting point of the color gradient.

    int yGradientStart

    The y-coordinate location of the starting point of the color gradient.

    Color colorGradientEnd

    The ending color of the color gradient.

    int xGradientEnd

    The x-coordinate location of the ending point of the color gradient.

    int yGradientEnd

    The y-coordinate location of the ending point of the color gradient.

    ushort opacity

    The opacity of the ellipse.

    DrawEllipse(Color, int, int, int, int)

    Draw and Ellipse

    Declaration
    public void DrawEllipse(Color colorOutline, int x, int y, int xRadius, int yRadius)
    Parameters
    Type Name Description
    Color colorOutline

    The outline color.

    int x

    The x-coordinate location of the center of the ellipse.

    int y

    The y-coordinate location of the center of the ellipse.

    int xRadius

    The radius of the ellipse in the x-coordinate direction.

    int yRadius

    The radius of the ellipse in the y-coordinate direction.

    DrawImage(int, int, Bitmap, int, int, int, int, ushort)

    Draws a rectangular block of pixels with a specified degree of transparency.

    Declaration
    public void DrawImage(int xDst, int yDst, Bitmap bitmap, int xSrc, int ySrc, int width, int height, ushort opacity)
    Parameters
    Type Name Description
    int xDst

    The x-coordinate location of the upper-left corner of the rectangular area on the display to which the specified pixels are to be copied.

    int yDst

    The y-coordinate location of the upper-left corner of the rectangular area on the display to which the specified pixels are to be copied.

    Bitmap bitmap

    The source bitmap.

    int xSrc

    The x-coordinate location of the upper-left corner of the rectangular area in the source bitmap from which the specified pixels are to be copied.

    int ySrc

    The x-coordinate location of the upper-left corner of the rectangular area in the source bitmap from which the specified pixels are to be copied.

    int width

    The width of the rectangular block of pixels to be copied.

    int height

    The height of the rectangular block of pixels to be copied.

    ushort opacity

    The degree of opacity of the bitmap. A value of 0 (zero) makes the bitmap completely opaque (not transparent at all); a value of 255 makes the bitmap completely transparent.

    DrawImage(int, int, Bitmap, int, int, int, int)

    Draws a rectangular block of pixels with a specified degree of transparency.

    Declaration
    public void DrawImage(int xDst, int yDst, Bitmap bitmap, int xSrc, int ySrc, int width, int height)
    Parameters
    Type Name Description
    int xDst

    The x-coordinate location of the upper-left corner of the rectangular area on the display to which the specified pixels are to be copied.

    int yDst

    The y-coordinate location of the upper-left corner of the rectangular area on the display to which the specified pixels are to be copied.

    Bitmap bitmap

    The source bitmap.

    int xSrc

    The x-coordinate location of the upper-left corner of the rectangular area in the source bitmap from which the specified pixels are to be copied.

    int ySrc

    The x-coordinate location of the upper-left corner of the rectangular area in the source bitmap from which the specified pixels are to be copied.

    int width

    The width of the rectangular block of pixels to be copied.

    int height

    The height of the rectangular block of pixels to be copied.

    DrawLine(Color, int, int, int, int, int)

    Draws a line on the display device.

    Declaration
    public void DrawLine(Color color, int thickness, int x0, int y0, int x1, int y1)
    Parameters
    Type Name Description
    Color color

    The color of the line.

    int thickness

    The thickness of the line, in pixels.Remark: The thickness parameter is not currently available.For now, all lines are one pixel thick.

    int x0

    The x-coordinate location of the line's starting point.

    int y0

    The y-coordinate location of the line's starting point.

    int x1

    The x-coordinate location of the line's ending point.

    int y1

    The y-coordinate location of the line's ending point.

    DrawRectangle(Color, int, int, int, int, int, int, int, Color, int, int, Color, int, int, ushort)

    Draws a rectangle on the display device.

    Declaration
    public void DrawRectangle(Color colorOutline, int thicknessOutline, int x, int y, int width, int height, int xCornerRadius, int yCornerRadius, Color colorGradientStart, int xGradientStart, int yGradientStart, Color colorGradientEnd, int xGradientEnd, int yGradientEnd, ushort opacity)
    Parameters
    Type Name Description
    Color colorOutline

    The color of the rectangle's outline.

    int thicknessOutline

    The thickness of the rectangle's outline, in pixels.

    int x

    The x-coordinate of the rectangle's upper-left corner.

    int y

    The y-coordinate of the rectangle's upper-left corner.

    int width

    The width of the rectangle, in pixels.

    int height

    The height of the rectangle, in pixels.

    int xCornerRadius

    The x-coordinate value of the corner radius used to produce rounded corners on the rectangle.

    int yCornerRadius

    The y-coordinate value of the corner radius used to produce rounded corners on the rectangle.

    Color colorGradientStart

    The starting color for a color gradient.

    int xGradientStart

    Holds the x coordinate of the starting location of the color gradient.

    int yGradientStart

    Holds the y coordinate of the starting location of the color gradient.

    Color colorGradientEnd

    Specifies the ending color of the color gradient.

    int xGradientEnd

    Holds the x coordinate of the ending location of the color gradient.

    int yGradientEnd

    Holds the y coordinate of the ending location of the color gradient.

    ushort opacity

    Specifies the opacity of the fill color. Set to 0x00 for completely transparent. Set to 0xFF for completely opague.

    DrawRectangle(int, int, int, int, int, Color)

    Draw a rectangle outline on the display device.

    Declaration
    public void DrawRectangle(int x, int y, int width, int height, int thickness, Color color)
    Parameters
    Type Name Description
    int x

    The x-coordinate of the rectangle's upper-left corner.

    int y

    The y-coordinate of the rectangle's upper-left corner.

    int width

    The width of the rectangle, in pixels.

    int height

    The height of the rectangle, in pixels.

    int thickness

    The thickness of the rectangle's outline, in pixels.

    Color color

    The color of the rectangle's outline.

    DrawRoundRectangle(int, int, int, int, int, int, int, Color)

    Draw a rounded rectangle outline on the display device.

    Declaration
    public void DrawRoundRectangle(int x, int y, int width, int height, int thickness, int xCornerRadius, int yCornerRadius, Color color)
    Parameters
    Type Name Description
    int x

    The x-coordinate of the rectangle's upper-left corner.

    int y

    The y-coordinate of the rectangle's upper-left corner.

    int width

    The width of the rectangle, in pixels.

    int height

    The height of the rectangle, in pixels.

    int thickness

    The thickness of the rectangle's outline, in pixels.

    int xCornerRadius

    The x-coordinate value of the corner radius used to produce rounded corners on the rectangle.

    int yCornerRadius

    The y-coordinate value of the corner radius used to produce rounded corners on the rectangle.

    Color color

    The color of the rectangle's outline.

    DrawText(string, Font, Color, int, int)

    Draws text on the display device, using a specified font and color.

    Declaration
    public void DrawText(string text, Font font, Color color, int x, int y)
    Parameters
    Type Name Description
    string text

    The text to be drawn.

    Font font

    The font to be used for the text.

    Color color

    The color to be used for the text.

    int x

    The x-coordinate of the location where text drawing is to begin.

    int y

    The y-coordinate of the location where text drawing is to begin.

    DrawTextInRect(string, int, int, int, int, uint, Color, Font)

    The text to be drawn. This parameter contains the remaining text, or an empty string, if the complete text string did not fit in the specified rectangle. The x-coordinate of the upper-left corner of the rectangle. The y-coordinate of the upper-left corner of the rectangle. The width of the rectangle. The height of the rectangle. Flags that specify the format of the text. The color to be used for the text. The font to be used for the text.
    Declaration
    public void DrawTextInRect(string text, int x, int y, int width, int height, uint dtFlags, Color color, Font font)
    Parameters
    Type Name Description
    string text
    int x
    int y
    int width
    int height
    uint dtFlags
    Color color
    Font font

    DrawTextInRect(ref string, ref int, ref int, int, int, int, int, uint, Color, Font)

    Draws text in a specified rectangle. Sets the clipping region (clipping rectangle) of a bitmap with a specified coordinate pair (x, y), width, and height.

    Declaration
    public bool DrawTextInRect(ref string text, ref int xRelStart, ref int yRelStart, int x, int y, int width, int height, uint dtFlags, Color color, Font font)
    Parameters
    Type Name Description
    string text

    The text to be drawn. This parameter contains the remaining text, or an empty string, if the complete text string did not fit in the specified rectangle.

    int xRelStart

    The x-coordinate, relative to the rectangle, at which text drawing is to begin.

    int yRelStart

    The y-coordinate, relative to the rectangle, at which text drawing is to begin.

    int x

    The x-coordinate of the upper-left corner of the rectangle.

    int y

    The y-coordinate of the upper-left corner of the rectangle.

    int width

    The width of the rectangle.

    int height

    The height of the rectangle.

    uint dtFlags

    Flags that specify the format of the text.

    Color color

    The color to be used for the text.

    Font font

    The font to be used for the text.

    Returns
    Type Description
    bool

    FillGradientRectangle(int, int, int, int, Color, int, int, Color, int, int, ushort)

    Draw a filled gradient rectangle on the display device.

    Declaration
    public void FillGradientRectangle(int x, int y, int width, int height, Color colorGradientStart, int xGradientStart, int yGradientStart, Color colorGradientEnd, int xGradientEnd, int yGradientEnd, ushort opacity)
    Parameters
    Type Name Description
    int x

    The x-coordinate of the rectangle's upper-left corner.

    int y

    The y-coordinate of the rectangle's upper-left corner.

    int width

    The width of the rectangle, in pixels.

    int height

    The height of the rectangle, in pixels.

    Color colorGradientStart

    The starting color for a color gradient.

    int xGradientStart

    Holds the x coordinate of the starting location of the color gradient.

    int yGradientStart

    Holds the y coordinate of the starting location of the color gradient.

    Color colorGradientEnd

    Specifies the ending color of the color gradient.

    int xGradientEnd

    Holds the x coordinate of the ending location of the color gradient.

    int yGradientEnd

    Holds the y coordinate of the ending location of the color gradient.

    ushort opacity

    Specifies the opacity of the fill color. Set to OpacityTransparent for completely transparent. Set to OpacityOpaque for completely opague.

    FillRectangle(int, int, int, int, Color, ushort)

    Draw a filled rectangle on the display device.

    Declaration
    public void FillRectangle(int x, int y, int width, int height, Color color, ushort opacity)
    Parameters
    Type Name Description
    int x

    The x-coordinate of the rectangle's upper-left corner.

    int y

    The y-coordinate of the rectangle's upper-left corner.

    int width

    The width of the rectangle, in pixels.

    int height

    The height of the rectangle, in pixels.

    Color color

    The color of the rectangle's outline.

    ushort opacity

    Specifies the opacity of the fill color. Set to OpacityTransparent for completely transparent. Set to OpacityOpaque for completely opague.

    FillRoundRectangle(int, int, int, int, int, int, Color, ushort)

    Draw a filled rounded rectangle on the display device.

    Declaration
    public void FillRoundRectangle(int x, int y, int width, int height, int xCornerRadius, int yCornerRadius, Color color, ushort opacity)
    Parameters
    Type Name Description
    int x

    The x-coordinate of the rectangle's upper-left corner.

    int y

    The y-coordinate of the rectangle's upper-left corner.

    int width

    The width of the rectangle, in pixels.

    int height

    The height of the rectangle, in pixels.

    int xCornerRadius

    The x-coordinate value of the corner radius used to produce rounded corners on the rectangle.

    int yCornerRadius

    The y-coordinate value of the corner radius used to produce rounded corners on the rectangle.

    Color color

    The color of the rectangle's outline.

    ushort opacity

    Specifies the opacity of the fill color. Set to OpacityTransparent for completely transparent. Set to OpacityOpaque for completely opague.

    Finalize()

    Declaration
    protected override void Finalize()

    Flush()

    Flushes the current bitmap to the display device. Bitmap will be written to the upper-left corner of the screen (full-screen, for full-screen bitmaps).

    Declaration
    public void Flush()

    Flush(int, int, int, int, int, int)

    Flushes a sub-rectangle of the current bitmap to the display device at a specified screen position.

    Declaration
    public void Flush(int srcX, int srcY, int width, int height, int screenX, int screenY)
    Parameters
    Type Name Description
    int srcX

    The x-coordinate of the sub-rectangle's upper-left corner.

    int srcY

    The y-coordinate of the sub-rectangle's upper-left corner.

    int width

    The width of the sub-rectangle.

    int height

    The height of the sub-rectangle.

    int screenX

    The x-coordinate of the screen to write to.

    int screenY

    The y-coordinate of the screen to write to

    Flush(int, int, int, int)

    Flushes a sub-rectangle of the current bitmap to the display device.

    Declaration
    public void Flush(int x, int y, int width, int height)
    Parameters
    Type Name Description
    int x

    The x-coordinate of the sub-rectangle's upper-left corner.

    int y

    The y-coordinate of the sub-rectangle's upper-left corner.

    int width

    The width of the sub-rectangle.

    int height

    The height of the sub-rectangle.

    GetBitmap()

    Declaration
    public byte[] GetBitmap()
    Returns
    Type Description
    byte[]

    GetPixel(int, int)

    Retrieves the pixel color at a specified location on the display device.

    Declaration
    public Color GetPixel(int xPos, int yPos)
    Parameters
    Type Name Description
    int xPos

    The x-coordinate of the pixel whose color you want to get.

    int yPos

    The y-coordinate of the pixel whose color you want to get.

    Returns
    Type Description
    Color

    MakeTransparent(Color)

    Sets a bitmap's transparent color.

    Declaration
    public void MakeTransparent(Color color)
    Parameters
    Type Name Description
    Color color

    The color to be used as the bitmap's transparent color.

    RotateImage(int, int, int, Bitmap, int, int, int, int, ushort)

    Declaration
    public void RotateImage(int angle, int xDst, int yDst, Bitmap bitmap, int xSrc, int ySrc, int width, int height, ushort opacity)
    Parameters
    Type Name Description
    int angle

    The degree of rotation.

    int xDst

    The x-coordinate of the center? of the destination bitmap.

    int yDst

    The y-coordinate of the center? of the destination bitmap.

    Bitmap bitmap
    int xSrc

    The x-coordinate of the center? of the source bitmap.

    int ySrc

    The y-coordinate of the center? of the source bitmap.

    int width
    int height
    ushort opacity

    Scale9Image(int, int, int, int, Bitmap, int, int, int, int, ushort)

    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
    int xDst

    The x-coordinate of the upper-left corner of the rectangular area to which the pixels are to be copied.

    int yDst

    The y-coordinate of the upper-left corner of the rectangular area to which the pixels are to be copied.

    int widthDst
    int heightDst
    Bitmap bitmap
    int leftBorder
    int topBorder
    int rightBorder
    int bottomBorder
    ushort opacity

    The bitmap's degree of opacity. A value of 0 (zero) makes the bitmap completely opaque (not transparent at all); a value of 255 makes the bitmap completely transparent.

    SetClippingRectangle(int, int, int, int)

    Declaration
    public void SetClippingRectangle(int x, int y, int width, int height)
    Parameters
    Type Name Description
    int x

    The x-coordinate of the upper-left corner of the clipping rectangle.

    int y

    The y-coordinate of the upper-left corner of the clipping rectangle.

    int width

    The width of the clipping rectangle.

    int height

    The height of the clipping rectangle.

    SetPixel(int, int, Color)

    Sets the color for a specified pixel.

    Declaration
    public void SetPixel(int xPos, int yPos, Color color)
    Parameters
    Type Name Description
    int xPos

    The x-coordinate of the pixel whose color you want to set.

    int yPos

    The y-coordinate of the pixel whose color you want to set.

    Color color

    The color you want to set for the specified pixel.

    StretchImage(int, int, Bitmap, int, int, ushort)

    Draws a rectangular block of pixels on the display device, stretching or shrinking the rectangular area as necessary.

    Declaration
    public void StretchImage(int xDst, int yDst, Bitmap sourceBitmap, int width, int height, ushort opacity)
    Parameters
    Type Name Description
    int xDst

    The x-coordinate of the upper-left corner of the rectangular area to which the pixels are to be copied.

    int yDst

    The y-coordinate of the upper-left corner of the rectangular area to which the pixels are to be copied.

    Bitmap sourceBitmap

    The source bitmap.

    int width

    The width of the rectangluar area to which the pixels are to be copied.

    int height

    The height of the rectangluar area to which the pixels are to be copied.

    ushort opacity

    The bitmap's degree of opacity. A value of 0 (zero) makes the bitmap completely opaque (not transparent at all); a value of 255 makes the bitmap completely transparent.

    StretchImage(int, int, int, int, Bitmap, int, int, int, int, ushort)

    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
    int xDst

    The x-coordinate of the upper-left corner of the rectangular area to which the pixels are to be copied.

    int yDst

    The y-coordinate of the upper-left corner of the rectangular area to which the pixels are to be copied.

    int widthDst

    The width of the rectangluar area to which the pixels are to be copied.

    int heightDst

    The height of the rectangluar area to which the pixels are to be copied.

    Bitmap bitmap

    The source bitmap.

    int xSrc
    int ySrc
    int widthSrc
    int heightSrc
    ushort opacity

    The bitmap's degree of opacity. A value of 0 (zero) makes the bitmap completely opaque (not transparent at all); a value of 255 makes the bitmap completely transparent.

    TileImage(int, int, Bitmap, int, int, ushort)

    Declaration
    public void TileImage(int xDst, int yDst, Bitmap bitmap, int width, int height, ushort opacity)
    Parameters
    Type Name Description
    int xDst

    The x-coordinate of the upper-left corner of the rectangular area to which the pixels are to be copied.

    int yDst

    The y-coordinate of the upper-left corner of the rectangular area to which the pixels are to be copied.

    Bitmap bitmap

    The source bitmap.

    int width
    int height
    ushort opacity

    The bitmap's degree of opacity. A value of 0 (zero) makes the bitmap completely opaque (not transparent at all); a value of 255 makes the bitmap completely transparent.

    Implements

    IDisposable

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    In This Article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX