C# Класс ScreenToGif.FileWriters.GifWriter.PixelUtil

Helper Class that gets and sets image pixels using Marshal calls.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetPixel ( int x, int y ) : Color

Get the color of the specified pixel

LockBits ( ) : void

Lock bitmap data.

PixelUtil ( Bitmap 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

Описание методов

GetPixel() публичный Метод

Get the color of the specified pixel
public GetPixel ( int x, int y ) : Color
x int
y int
Результат Color

LockBits() публичный Метод

Lock bitmap data.
public LockBits ( ) : void
Результат void

PixelUtil() публичный Метод

Pixel marshalling class, use this to access pixels rapidly.
public PixelUtil ( Bitmap source ) : System
source System.Drawing.Bitmap The Bitmap to work with.
Результат System

SetPixel() публичный Метод

Set the color of the specified pixel
public SetPixel ( int x, int y, Color color ) : void
x int
y int
color Color
Результат void

UnlockBits() публичный Метод

Unlock bitmap data
public UnlockBits ( ) : void
Результат void