C# Class Xwt.GtkBackend.ImageHandler

Inheritance: Xwt.Backends.ImageBackendHandler
Mostra file Open project: mono/xwt

Public Methods

Method Description
ConvertToBitmap ( ImageDescription idesc, double scaleFactor, ImageFormat format ) : object
CopyBitmap ( object handle ) : object
CopyBitmapArea ( object srcHandle, int srcX, int srcY, int width, int height, object destHandle, int destX, int destY ) : void
CreateCustomDrawn ( ImageDrawCallback drawCallback ) : object
CreateMultiResolutionImage ( IEnumerable images ) : object
CreateMultiSizeIcon ( IEnumerable images ) : object
CropBitmap ( object handle, int srcX, int srcY, int width, int height ) : object
Dispose ( object backend ) : void
GetBitmapPixel ( object handle, int x, int y ) : Xwt.Drawing.Color
GetSize ( object handle ) : Size
GetStockIcon ( string id ) : System.Image
HasMultipleSizes ( object handle ) : bool
IsBitmap ( object handle ) : bool
LoadFromFile ( string file ) : object
LoadFromStream ( System stream ) : object
SaveToStream ( object backend, System stream, ImageFileType fileType ) : void
SetBitmapPixel ( object handle, int x, int y, Xwt color ) : void

Private Methods

Method Description
CreateBitmap ( string stockId, double width, double height, double scaleFactor ) : Gdk.Pixbuf
GetFileType ( ImageFileType type ) : string

Method Details

ConvertToBitmap() public method

public ConvertToBitmap ( ImageDescription idesc, double scaleFactor, ImageFormat format ) : object
idesc Xwt.Backends.ImageDescription
scaleFactor double
format ImageFormat
return object

CopyBitmap() public method

public CopyBitmap ( object handle ) : object
handle object
return object

CopyBitmapArea() public method

public 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

CreateCustomDrawn() public method

public CreateCustomDrawn ( ImageDrawCallback drawCallback ) : object
drawCallback ImageDrawCallback
return object

CreateMultiResolutionImage() public method

public CreateMultiResolutionImage ( IEnumerable images ) : object
images IEnumerable
return object

CreateMultiSizeIcon() public method

public CreateMultiSizeIcon ( IEnumerable images ) : object
images IEnumerable
return object

CropBitmap() public method

public CropBitmap ( object handle, int srcX, int srcY, int width, int height ) : object
handle object
srcX int
srcY int
width int
height int
return object

Dispose() public method

public Dispose ( object backend ) : void
backend object
return void

GetBitmapPixel() public method

public GetBitmapPixel ( object handle, int x, int y ) : Xwt.Drawing.Color
handle object
x int
y int
return Xwt.Drawing.Color

GetSize() public method

public GetSize ( object handle ) : Size
handle object
return Size

GetStockIcon() public method

public GetStockIcon ( string id ) : System.Image
id string
return System.Image

HasMultipleSizes() public method

public HasMultipleSizes ( object handle ) : bool
handle object
return bool

IsBitmap() public method

public IsBitmap ( object handle ) : bool
handle object
return bool

LoadFromFile() public method

public LoadFromFile ( string file ) : object
file string
return object

LoadFromStream() public method

public LoadFromStream ( System stream ) : object
stream System
return object

SaveToStream() public method

public SaveToStream ( object backend, System stream, ImageFileType fileType ) : void
backend object
stream System
fileType ImageFileType
return void

SetBitmapPixel() public method

public SetBitmapPixel ( object handle, int x, int y, Xwt color ) : void
handle object
x int
y int
color Xwt
return void