Method | Description | |
---|---|---|
ConvertToBitmap ( object handle, double width, double height, double scaleFactor, ImageFormat format ) : object |
Converts an image to a bitmap of the specified size
|
|
CopyBitmap ( object handle ) : object | ||
CopyBitmapArea ( object srcHandle, int srcX, int srcY, int width, int height, object destHandle, int destX, int destY ) : void | ||
CreateBackend ( ) : object | ||
CreateCustomDrawn ( ImageDrawCallback drawCallback ) : object |
Creates an image that is custom drawn
|
|
CreateMultiResolutionImage ( IEnumerable |
Creates an image with multiple representations in different sizes The first image of the list if the reference image, the one with scale factor = 1 |
|
CreateMultiSizeIcon ( IEnumerable | ||
CropBitmap ( object handle, int srcX, int srcY, int width, int height ) : object | ||
GetBitmapPixel ( object handle, int x, int y ) : Color | ||
GetSize ( object handle ) : Size |
Gets the size of an image This method should return a size of (0,0) if the image doesn't have an intrinsic size. For example: if the image is a vecor image, or if is an icon composed of images of different sizes. |
|
GetStockIcon ( string id ) : Image | ||
HasMultipleSizes ( object handle ) : bool |
Returns True if the image has multiple representations of different sizes. For example, it would return True for a .ico file which as several representations of the image in different sizes |
|
IsBitmap ( object handle ) : bool |
Determines whether this instance is a bitmap
|
|
LoadFromFile ( string file ) : object | ||
LoadFromResource ( |
||
LoadFromStream ( Stream stream ) : object | ||
SaveToStream ( object backend, System stream, ImageFileType fileType ) : void | ||
SetBitmapPixel ( object handle, int x, int y, Color color ) : void |
public abstract ConvertToBitmap ( object handle, double width, double height, double scaleFactor, ImageFormat format ) : object | ||
handle | object | Image handle. |
width | double | Width. |
height | double | Height. |
scaleFactor | double | |
format | ImageFormat | |
return | object |
public abstract CopyBitmap ( object handle ) : object | ||
handle | object | |
return | object |
public abstract CopyBitmapArea ( object srcHandle, int srcX, int srcY, int width, int height, object destHandle, int destX, int destY ) : void | ||
srcHandle | object | |
srcX | int | |
srcY | int | |
width | int | |
height | int | |
destHandle | object | |
destX | int | |
destY | int | |
return | void |
public CreateCustomDrawn ( ImageDrawCallback drawCallback ) : object | ||
drawCallback | ImageDrawCallback | The callback to be used to draw the image. The arguments are: the context backend, the bounds where to draw |
return | object |
public CreateMultiResolutionImage ( IEnumerable | ||
images | IEnumerable | Backends of the different image representations |
return | object |
public CreateMultiSizeIcon ( IEnumerable | ||
images | IEnumerable | |
return | object |
public abstract CropBitmap ( object handle, int srcX, int srcY, int width, int height ) : object | ||
handle | object | |
srcX | int | |
srcY | int | |
width | int | |
height | int | |
return | object |
public abstract GetBitmapPixel ( object handle, int x, int y ) : Color | ||
handle | object | |
x | int | |
y | int | |
return | Color |
public abstract GetSize ( object handle ) : Size | ||
handle | object | Image handle |
return | Size |
public abstract GetStockIcon ( string id ) : Image | ||
id | string | |
return | Image |
public abstract HasMultipleSizes ( object handle ) : bool | ||
handle | object | Image handle. |
return | bool |
public abstract IsBitmap ( object handle ) : bool | ||
handle | object | Image handle |
return | bool |
public LoadFromResource ( |
||
asm | ||
name | string | |
return | object |
public abstract LoadFromStream ( Stream stream ) : object | ||
stream | Stream | |
return | object |
public abstract SaveToStream ( object backend, System stream, ImageFileType fileType ) : void | ||
backend | object | |
stream | System | |
fileType | ImageFileType | |
return | void |
public abstract SetBitmapPixel ( object handle, int x, int y, Color color ) : void | ||
handle | object | |
x | int | |
y | int | |
color | Color | |
return | void |