C# Class KeePassLib.Utility.GfxUtil

Mostrar archivo Open project: cappert/keepass2 Class Usage Examples

Public Methods

Method Description
LoadImage ( byte pb ) : Image
ScaleImage ( Image img, int w, int h ) : Image
ScaleImage ( Image img, int w, int h, ScaleTransformFlags f ) : Image

Resize an image.

ScaleTest ( Image vIcons ) : Image

Private Methods

Method Description
AdjustScaleRects ( RectangleF &rSource, RectangleF &rDest ) : void
ExtractBestImageFromIco ( byte pb ) : Image
GetBitsPerPixel ( Android.Graphics.PixelFormat f ) : int
LoadImagePriv ( Stream s ) : Image
UnpackIco ( byte pb ) : List

Method Details

LoadImage() public static method

public static LoadImage ( byte pb ) : Image
pb byte
return Image

ScaleImage() public static method

public static ScaleImage ( Image img, int w, int h ) : Image
img Image
w int
h int
return Image

ScaleImage() public static method

Resize an image.
public static ScaleImage ( Image img, int w, int h, ScaleTransformFlags f ) : Image
img Image Image to resize.
w int Width of the returned image.
h int Height of the returned image.
f ScaleTransformFlags Flags to customize scaling behavior.
return Image

ScaleTest() public static method

public static ScaleTest ( Image vIcons ) : Image
vIcons Image
return Image