C# Class ScreenToGif.ImageUtil.GifEncoder2.PixelUtil

Helper Class that gets and sets image pixels using Marshal calls.
Afficher le fichier Open project: dbremner/ScreenToGif Class Usage Examples

Méthodes publiques

Méthode Description
GetPixel ( int x, int y ) : Color

Get the color of the specified pixel

LockBits ( ) : void

Lock bitmap data.

PixelUtil ( System.Windows.Media.Imaging.BitmapSource source ) : System

Pixel marshalling class, use this to access pixels rapidly.

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

Set the color of the specified pixel

UnlockBits ( ) : void

Unlock bitmap data

Method Details

GetPixel() public méthode

Get the color of the specified pixel
public GetPixel ( int x, int y ) : Color
x int
y int
Résultat Color

LockBits() public méthode

Lock bitmap data.
public LockBits ( ) : void
Résultat void

PixelUtil() public méthode

Pixel marshalling class, use this to access pixels rapidly.
public PixelUtil ( System.Windows.Media.Imaging.BitmapSource source ) : System
source System.Windows.Media.Imaging.BitmapSource The Bitmap to work with.
Résultat System

SetPixel() public méthode

Set the color of the specified pixel
public SetPixel ( int x, int y, Color color ) : void
x int
y int
color Color
Résultat void

UnlockBits() public méthode

Unlock bitmap data
public UnlockBits ( ) : void
Résultat void