C# Class System.Drawing.Bitmap

Inheritance: System.Drawing.Image
Show file Open project: mono/sysdrawing-coregraphics Class Usage Examples

Public Methods

Method Description
Bitmap ( Image image ) : AppKit

Initializes a new instance of the System.Drawing.Bitmap class from the specified existing image..

Bitmap ( Image original, Size newSize ) : AppKit
Bitmap ( Image original, int width, int height ) : AppKit
Bitmap ( Stream stream, bool useIcm ) : AppKit
Bitmap ( int width, int height ) : AppKit
Bitmap ( int width, int height, PixelFormat format ) : AppKit
Bitmap ( string filename ) : AppKit
Clone ( Rectangle rect, PixelFormat pixelFormat ) : Bitmap

Creates a copy of the section of this Bitmap defined by Rectangle structure and with a specified PixelFormat enumeration.

GetPixel ( int x, int y ) : Color
LockBits ( RectangleF rect, ImageLockMode flags, PixelFormat pixelFormat ) : System.Drawing.Imaging.BitmapData
MakeTransparent ( ) : void
MakeTransparent ( Color transparentColor ) : void
Save ( Stream stream, ImageFormat format ) : void
Save ( string path ) : void
Save ( string path, ImageFormat format ) : void
SetPixel ( int x, int y, Color color ) : void
SetResolution ( float xDpi, float yDpi ) : void
UnlockBits ( BitmapData data ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Convert_BGRA_8888_To_P_RGBA_8888 ( IntPtr source, IntPtr destination, int scanLength ) : void
Convert_BGR_888_To_P_RGBA_8888 ( IntPtr source, IntPtr destination, int scanLength ) : void
Convert_P_RGBA_8888_To_BGRA_8888 ( byte &scanLine, byte source ) : void
Convert_P_RGBA_8888_To_BGR_888 ( byte &scanLine, byte source ) : void
CreateCompatibleBitmapContext ( int width, int height, PixelFormat pixelFormat ) : CGBitmapContext
CreateCompatibleBitmapContext ( int width, int height, PixelFormat pixelFormat, IntPtr pixelData ) : CGBitmapContext
GetBestSupportedFormat ( PixelFormat pixelFormat ) : PixelFormat
GetRenderableContext ( ) : CGBitmapContext
GuessPixelFormat ( ) : void
InitWithCGImage ( CGImage image ) : void
InitializeImageFrame ( int frame ) : void
MakeSureWeHaveAnAlphaChannel ( ) : void
RectangularCopy ( byte dstScanLine, byte srcScanLine, int dstStride, int srcStride, int width, int height, int sizeOfPixel ) : void
RotateFlip ( RotateFlipType rotateFlipType ) : void
SetImageInformation ( int frame ) : void
flipImageYAxis ( IntPtr source, IntPtr dest, int stride, int height, int size ) : void
flipImageYAxis ( int width, int height, int size ) : void
memcpy ( byte dest, byte src, int count ) : void

Method Details

Bitmap() public method

Initializes a new instance of the System.Drawing.Bitmap class from the specified existing image..
public Bitmap ( Image image ) : AppKit
image Image Image.
return AppKit

Bitmap() public method

public Bitmap ( Image original, Size newSize ) : AppKit
original Image
newSize Size
return AppKit

Bitmap() public method

public Bitmap ( Image original, int width, int height ) : AppKit
original Image
width int
height int
return AppKit

Bitmap() public method

public Bitmap ( Stream stream, bool useIcm ) : AppKit
stream System.IO.Stream
useIcm bool
return AppKit

Bitmap() public method

public Bitmap ( int width, int height ) : AppKit
width int
height int
return AppKit

Bitmap() public method

public Bitmap ( int width, int height, PixelFormat format ) : AppKit
width int
height int
format PixelFormat
return AppKit

Bitmap() public method

public Bitmap ( string filename ) : AppKit
filename string
return AppKit

Clone() public method

Creates a copy of the section of this Bitmap defined by Rectangle structure and with a specified PixelFormat enumeration.
public Clone ( Rectangle rect, PixelFormat pixelFormat ) : Bitmap
rect Rectangle Rect.
pixelFormat PixelFormat Pixel format.
return Bitmap

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetPixel() public method

public GetPixel ( int x, int y ) : Color
x int
y int
return Color

LockBits() public method

public LockBits ( RectangleF rect, ImageLockMode flags, PixelFormat pixelFormat ) : System.Drawing.Imaging.BitmapData
rect RectangleF
flags ImageLockMode
pixelFormat PixelFormat
return System.Drawing.Imaging.BitmapData

MakeTransparent() public method

public MakeTransparent ( ) : void
return void

MakeTransparent() public method

public MakeTransparent ( Color transparentColor ) : void
transparentColor Color
return void

Save() public method

public Save ( Stream stream, ImageFormat format ) : void
stream Stream
format ImageFormat
return void

Save() public method

public Save ( string path ) : void
path string
return void

Save() public method

public Save ( string path, ImageFormat format ) : void
path string
format ImageFormat
return void

SetPixel() public method

public SetPixel ( int x, int y, Color color ) : void
x int
y int
color Color
return void

SetResolution() public method

public SetResolution ( float xDpi, float yDpi ) : void
xDpi float
yDpi float
return void

UnlockBits() public method

public UnlockBits ( BitmapData data ) : void
data BitmapData
return void