RUSProtocolAPI  5.2.02.0
CustomEngineering.CeFiscalRXConfigurator.Tools.GenericGraphicTools Class Reference

Public Types

enum  ColorFilterTypes
 
enum  ColorFilterTypes
 

Static Public Member Functions

static void SetColorFilter (ref Bitmap currentBitmap, ColorFilterTypes colorFilterType)
 
static void SetGamma (ref Bitmap currentBitmap, double red, double green, double blue)
 
static void SetBrightness (ref Bitmap currentBitmap, int brightness)
 
static void SetContrast (ref Bitmap currentBitmap, double contrast)
 
static void Resize (ref Bitmap currentBitmap, int newWidth, int newHeight)
 
static void SetInvert (ref Bitmap currentBitmap)
 
static void Crop (ref Bitmap currentBitmap, int xPosition, int yPosition, int width, int height, PixelFormat pf)
 
static void RotateFlip (ref Bitmap currentBitmap, RotateFlipType rotateFlipType)
 
static void ToFormat24bppRgb (ref Bitmap currentBitmap)
 
static void ToGrayscale (ref Bitmap currentBitmap)
 
static Bitmap CopyToBpp (Bitmap b, int bpp)
 
static void ToBlackWhiteWithFloydSteimberg (ref Bitmap currentBitmap)
 
static unsafe void ToBlackWhiteWithFloydSteimbergUnsafe (ref Bitmap currentBitmap)
 
static System.Drawing.Bitmap ByteArrayToBitmap (byte[] bBuffer)
 
static long GetBitmapBMPFileSize (System.Drawing.Bitmap bmp, int bpp)
 
static byte [] GetBitmapBMPFile (System.Drawing.Bitmap bmp, int bpp)
 
static void SetColorFilter (ref Bitmap currentBitmap, ColorFilterTypes colorFilterType)
 
static void SetGamma (ref Bitmap currentBitmap, double red, double green, double blue)
 
static void SetBrightness (ref Bitmap currentBitmap, int brightness)
 
static void SetContrast (ref Bitmap currentBitmap, double contrast)
 
static void Resize (ref Bitmap currentBitmap, int newWidth, int newHeight)
 
static void SetInvert (ref Bitmap currentBitmap)
 
static void Crop (ref Bitmap currentBitmap, int xPosition, int yPosition, int width, int height, PixelFormat pf)
 
static void RotateFlip (ref Bitmap currentBitmap, RotateFlipType rotateFlipType)
 
static void ToFormat24bppRgb (ref Bitmap currentBitmap)
 
static void ToGrayscale (ref Bitmap currentBitmap)
 
static Bitmap CopyToBpp (Bitmap b, int bpp)
 
static void ToBlackWhiteWithFloydSteimberg (ref Bitmap currentBitmap)
 
static System.Drawing.Bitmap ByteArrayToBitmap (byte[] bBuffer)
 
static long GetBitmapBMPFileSize (System.Drawing.Bitmap bmp, int bpp)
 
static byte [] ImageToByte2 (Image img)
 
static byte [] GetBitmapBMPFile (System.Drawing.Bitmap bmp, int bpp)
 

Member Function Documentation

◆ CopyToBpp() [1/2]

static Bitmap CustomEngineering.CeFiscalRXConfigurator.Tools.GenericGraphicTools.CopyToBpp ( Bitmap  b,
int  bpp 
)
inlinestatic

Copies a bitmap into a 1bpp/8bpp bitmap of the same dimensions, fast

Parameters
boriginal bitmap
bpp1 or 8, target bpp
Returns
a 1bpp copy of the bitmap

◆ CopyToBpp() [2/2]

static Bitmap CustomEngineering.CeFiscalRXConfigurator.Tools.GenericGraphicTools.CopyToBpp ( Bitmap  b,
int  bpp 
)
inlinestatic

Copies a bitmap into a 1bpp/8bpp bitmap of the same dimensions, fast

Parameters
boriginal bitmap
bpp1 or 8, target bpp
Returns
a 1bpp copy of the bitmap

◆ Crop() [1/2]

static void CustomEngineering.CeFiscalRXConfigurator.Tools.GenericGraphicTools.Crop ( ref Bitmap  currentBitmap,
int  xPosition,
int  yPosition,
int  width,
int  height,
PixelFormat  pf 
)
inlinestatic

draw a white rectangle to the bitmap in memory

◆ Crop() [2/2]

static void CustomEngineering.CeFiscalRXConfigurator.Tools.GenericGraphicTools.Crop ( ref Bitmap  currentBitmap,
int  xPosition,
int  yPosition,
int  width,
int  height,
PixelFormat  pf 
)
inlinestatic

draw a white rectangle to the bitmap in memory