C# Class WindowlessControls.PlatformBitmap

Inheritance: IDisposable
ファイルを表示 Open project: koush/WindowlessControls Class Usage Examples

Public Properties

Property Type Description
TransparentBrush System.Drawing.SolidBrush
TransparentColor Color
TransparentImageAttributes System.Drawing.Imaging.ImageAttributes

Public Methods

Method Description
Dispose ( ) : void
Draw ( Graphics g, Rectangle dstRect, Rectangle srcRect ) : void
From ( Stream bitmapStream ) : PlatformBitmap
From ( Stream bitmapStream, bool isOpaque ) : PlatformBitmap
From ( string filename ) : PlatformBitmap
FromResource ( string name ) : PlatformBitmap
GetThumbnail ( int width, int height ) : PlatformBitmap
OptimizeBitmap ( Stream bitmapStream ) : Bitmap
SafeFrom ( Stream bitmapStream ) : PlatformBitmap
SafeFrom ( string filename ) : PlatformBitmap

Private Methods

Method Description
IsOpaque ( string filename ) : bool
PlatformBitmap ( ) : System

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Draw() public abstract method

public abstract Draw ( Graphics g, Rectangle dstRect, Rectangle srcRect ) : void
g System.Drawing.Graphics
dstRect System.Drawing.Rectangle
srcRect System.Drawing.Rectangle
return void

From() public static method

public static From ( Stream bitmapStream ) : PlatformBitmap
bitmapStream Stream
return PlatformBitmap

From() public static method

public static From ( Stream bitmapStream, bool isOpaque ) : PlatformBitmap
bitmapStream Stream
isOpaque bool
return PlatformBitmap

From() public static method

public static From ( string filename ) : PlatformBitmap
filename string
return PlatformBitmap

FromResource() public static method

public static FromResource ( string name ) : PlatformBitmap
name string
return PlatformBitmap

GetThumbnail() public abstract method

public abstract GetThumbnail ( int width, int height ) : PlatformBitmap
width int
height int
return PlatformBitmap

OptimizeBitmap() public static method

public static OptimizeBitmap ( Stream bitmapStream ) : Bitmap
bitmapStream Stream
return System.Drawing.Bitmap

SafeFrom() public static method

public static SafeFrom ( Stream bitmapStream ) : PlatformBitmap
bitmapStream Stream
return PlatformBitmap

SafeFrom() public static method

public static SafeFrom ( string filename ) : PlatformBitmap
filename string
return PlatformBitmap

Property Details

TransparentBrush public_oe static_oe property

public static SolidBrush,System.Drawing TransparentBrush
return System.Drawing.SolidBrush

TransparentColor public_oe static_oe property

public static Color TransparentColor
return Color

TransparentImageAttributes public_oe static_oe property

public static ImageAttributes,System.Drawing.Imaging TransparentImageAttributes
return System.Drawing.Imaging.ImageAttributes