C# Class Xwt.Mac.ImageHandler

Inheritance: Xwt.Backends.ImageBackendHandler
Datei anzeigen Open project: TheBrainTech/xwt

Public Methods

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

Private Methods

Method Description
FromResource ( string res ) : MonoMac.AppKit.NSImage
GetIconRef ( short vRefNum, int creator, int iconType, IntPtr &iconRef ) : int
LoadStockIcon ( string id ) : MonoMac.AppKit.NSImage
NSImageFromResource ( string id ) : MonoMac.AppKit.NSImage
ReleaseIconRef ( IntPtr iconRef ) : int

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 backend, int srcX, int srcY, int width, int height, object dest, int destX, int destY ) : void
backend object
srcX int
srcY int
width int
height int
dest 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 backend, int srcX, int srcY, int width, int height ) : object
backend object
srcX int
srcY int
width int
height int
return object

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 System.Drawing.Size

GetStockIcon() public method

public GetStockIcon ( string id ) : Image
id string
return Xwt.Drawing.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 stream ) : object
stream System.Stream
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