C# Class SIL.Utils.ImagePicture

Inheritance: IPicture, IDisposable, IPictureDisp, IComDisposable
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Свойство Type Description
m_img Image

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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.
Résultat void

FromImage() public static méthode

Construct a ImagePicture from a C# Image object
public static FromImage ( Image img ) : ImagePicture
img Image
Résultat ImagePicture

IComDisposable() protected méthode

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

IDisposable() protected méthode

protected IDisposable ( ) : void
Résultat void

ImageBytes() public static méthode

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

ImagePicture() public méthode

public ImagePicture ( ) : System
Résultat System

PictureChanged() public méthode

public PictureChanged ( ) : void
Résultat void

Render() public méthode

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
Résultat void

Render() public méthode

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
Résultat void

SaveAsFile() public méthode

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

SelectPicture() public méthode

public SelectPicture ( int hdcIn, int &phdcOut, int &phbmpOut ) : void
hdcIn int
phdcOut int
phbmpOut int
Résultat void

SetHdc() public méthode

public SetHdc ( int hdc ) : void
hdc int
Résultat void

put_hPal() public méthode

public put_hPal ( int val ) : void
val int
Résultat void

Property Details

m_img protected_oe property

Contains the image this is Rendered.
protected Image m_img
Résultat Image