C# Class SIL.Utils.ImagePicture

Inheritance: IPicture, IDisposable, IPictureDisp, IComDisposable
Datei anzeigen Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Property Type Description
m_img Image

Public Methods

Method Description
FromImage ( Image img ) : ImagePicture

Construct a ImagePicture from a C# Image object

ImageBytes ( byte pbData, int cbData ) : ImagePicture

Construct a ImagePicture from an array of bytes

ImagePicture ( ) : System
PictureChanged ( ) : void
Render ( IntPtr hdc, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, IntPtr prcWBounds ) : void

Render ( int hdc, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, IntPtr prcWBounds ) : void
SaveAsFile ( IntPtr pstm, bool fSaveMemCopy, int &pcbSize ) : void
SelectPicture ( int hdcIn, int &phdcOut, int &phbmpOut ) : void
SetHdc ( int hdc ) : void
put_hPal ( int val ) : void

Protected Methods

Method Description
Dispose ( bool fDisposing ) : void

Releases unmanaged and - optionally - managed resources

IComDisposable ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

IDisposable ( ) : void

Method Details

Dispose() protected method

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool fDisposing ) : void
fDisposing bool true to release both managed and unmanaged /// resources; false to release only unmanaged resources.
return void

FromImage() public static method

Construct a ImagePicture from a C# Image object
public static FromImage ( Image img ) : ImagePicture
img Image
return ImagePicture

IComDisposable() protected method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected IComDisposable ( ) : void
return void

IDisposable() protected method

protected IDisposable ( ) : void
return void

ImageBytes() public static method

Construct a ImagePicture from an array of bytes
public static ImageBytes ( byte pbData, int cbData ) : ImagePicture
pbData byte
cbData int
return ImagePicture

ImagePicture() public method

public ImagePicture ( ) : System
return System

PictureChanged() public method

public PictureChanged ( ) : void
return void

Render() public method

public Render ( IntPtr hdc, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, IntPtr prcWBounds ) : void
hdc System.IntPtr
x int
y int
cx int
cy int
xSrc int
ySrc int
cxSrc int
cySrc int
prcWBounds System.IntPtr
return void

Render() public method

public Render ( int hdc, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, IntPtr prcWBounds ) : void
hdc int
x int
y int
cx int
cy int
xSrc int
ySrc int
cxSrc int
cySrc int
prcWBounds System.IntPtr
return void

SaveAsFile() public method

public SaveAsFile ( IntPtr pstm, bool fSaveMemCopy, int &pcbSize ) : void
pstm System.IntPtr
fSaveMemCopy bool
pcbSize int
return void

SelectPicture() public method

public SelectPicture ( int hdcIn, int &phdcOut, int &phbmpOut ) : void
hdcIn int
phdcOut int
phbmpOut int
return void

SetHdc() public method

public SetHdc ( int hdc ) : void
hdc int
return void

put_hPal() public method

public put_hPal ( int val ) : void
val int
return void

Property Details

m_img protected_oe property

Contains the image this is Rendered.
protected Image m_img
return Image