ICSV - Image Color Similarity Visualization
Vienna Technical University - Course 'Visualization 2'. Author: Stefan Spelitz (0925601)
ICSV.Server.Images.LockBitmap Class Reference

Helper class to lock a bitmap and access pixels values in a fast way. From http://www.codeproject.com/Tips/240428/Work-with-bitmap-faster-with-Csharp More...

Public Member Functions

 LockBitmap (Bitmap source)
 
void LockBits ()
 Lock bitmap data More...
 
void UnlockBits (bool copyData)
 Unlock bitmap data More...
 
Color GetPixel (int x, int y)
 Get the color of the specified pixel More...
 
void SetPixel (int x, int y, Color color)
 Set the color of the specified pixel More...
 

Properties

byte[] Pixels [get, set]
 
int Depth [get]
 
int Width [get]
 
int Height [get]
 
int Step [get]
 

Detailed Description

Helper class to lock a bitmap and access pixels values in a fast way. From http://www.codeproject.com/Tips/240428/Work-with-bitmap-faster-with-Csharp

Constructor & Destructor Documentation

ICSV.Server.Images.LockBitmap.LockBitmap ( Bitmap  source)

Member Function Documentation

Color ICSV.Server.Images.LockBitmap.GetPixel ( int  x,
int  y 
)

Get the color of the specified pixel

Parameters
x
y
Returns
void ICSV.Server.Images.LockBitmap.LockBits ( )

Lock bitmap data

void ICSV.Server.Images.LockBitmap.SetPixel ( int  x,
int  y,
Color  color 
)

Set the color of the specified pixel

Parameters
x
y
color
void ICSV.Server.Images.LockBitmap.UnlockBits ( bool  copyData)

Unlock bitmap data

Property Documentation

int ICSV.Server.Images.LockBitmap.Depth
get
int ICSV.Server.Images.LockBitmap.Height
get
byte [] ICSV.Server.Images.LockBitmap.Pixels
getset
int ICSV.Server.Images.LockBitmap.Step
get
int ICSV.Server.Images.LockBitmap.Width
get