Share via


Scale9Image Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Scales an image.

Namespace:  Microsoft.SPOT
Assembly:  Microsoft.SPOT.Graphics (in Microsoft.SPOT.Graphics.dll)

Syntax

'Declaration
Public Sub Scale9Image ( _
    xDst As Integer, _
    yDst As Integer, _
    widthDst As Integer, _
    heightDst As Integer, _
    bitmap As Bitmap, _
    leftBorder As Integer, _
    topBorder As Integer, _
    rightBorder As Integer, _
    bottomBorder As Integer, _
    opacity As UShort _
)
public void Scale9Image(
    int xDst,
    int yDst,
    int widthDst,
    int heightDst,
    Bitmap bitmap,
    int leftBorder,
    int topBorder,
    int rightBorder,
    int bottomBorder,
    ushort opacity
)
public:
void Scale9Image(
    int xDst, 
    int yDst, 
    int widthDst, 
    int heightDst, 
    Bitmap^ bitmap, 
    int leftBorder, 
    int topBorder, 
    int rightBorder, 
    int bottomBorder, 
    unsigned short opacity
)
member Scale9Image : 
        xDst:int * 
        yDst:int * 
        widthDst:int * 
        heightDst:int * 
        bitmap:Bitmap * 
        leftBorder:int * 
        topBorder:int * 
        rightBorder:int * 
        bottomBorder:int * 
        opacity:uint16 -> unit 
public function Scale9Image(
    xDst : int, 
    yDst : int, 
    widthDst : int, 
    heightDst : int, 
    bitmap : Bitmap, 
    leftBorder : int, 
    topBorder : int, 
    rightBorder : int, 
    bottomBorder : int, 
    opacity : ushort
)

Parameters

  • xDst
    Type: System. . :: . .Int32
    The x-coordinate location of the upper-left corner of the rectangular area on the display to scale the image.
  • yDst
    Type: System. . :: . .Int32
    The y-coordinate location of the upper-left corner of the rectangular area on the display to scale the image.
  • widthDst
    Type: System. . :: . .Int32
    The width of the rectangular area on the display to scale the image.
  • heightDst
    Type: System. . :: . .Int32
    The height of the rectangular area on the display to scale the image.
  • opacity
    Type: System. . :: . .UInt16
    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.

Remarks

The .NET Micro Framework provides the Microsoft.SPOT.Bitmap class for lower-level access, such as animation. For displaying static bitmaps and hyperlinked bitmaps, use the Image control.

.NET Framework Security

See Also

Reference

Bitmap Class

Microsoft.SPOT Namespace