C# Class System.Drawing.Bitmap

Inheritance: Image
Afficher le fichier Open project: mono/sysdrawing-coregraphics Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

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

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

Bitmap() public méthode

public Bitmap ( Image original, Size newSize ) : AppKit
original Image
newSize Size
Résultat AppKit

Bitmap() public méthode

public Bitmap ( Image original, int width, int height ) : AppKit
original Image
width int
height int
Résultat AppKit

Bitmap() public méthode

public Bitmap ( Stream stream, bool useIcm ) : AppKit
stream System.IO.Stream
useIcm bool
Résultat AppKit

Bitmap() public méthode

public Bitmap ( int width, int height ) : AppKit
width int
height int
Résultat AppKit

Bitmap() public méthode

public Bitmap ( int width, int height, PixelFormat format ) : AppKit
width int
height int
format PixelFormat
Résultat AppKit

Bitmap() public méthode

public Bitmap ( string filename ) : AppKit
filename string
Résultat AppKit

Clone() public méthode

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

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetPixel() public méthode

public GetPixel ( int x, int y ) : Color
x int
y int
Résultat Color

LockBits() public méthode

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

MakeTransparent() public méthode

public MakeTransparent ( ) : void
Résultat void

MakeTransparent() public méthode

public MakeTransparent ( Color transparentColor ) : void
transparentColor Color
Résultat void

Save() public méthode

public Save ( Stream stream, ImageFormat format ) : void
stream Stream
format ImageFormat
Résultat void

Save() public méthode

public Save ( string path ) : void
path string
Résultat void

Save() public méthode

public Save ( string path, ImageFormat format ) : void
path string
format ImageFormat
Résultat void

SetPixel() public méthode

public SetPixel ( int x, int y, Color color ) : void
x int
y int
color Color
Résultat void

SetResolution() public méthode

public SetResolution ( float xDpi, float yDpi ) : void
xDpi float
yDpi float
Résultat void

UnlockBits() public méthode

public UnlockBits ( BitmapData data ) : void
data BitmapData
Résultat void