GMSE Imaging
gmseBitmap Class
Class to manipulate bitmaps, read barcodes and write barcodes.
Member
Constructors
gmseBitmap()
Constructs an empty new gmseBitmap
gmseBitmap(bmp As Bitmap)
Constructs a new gmseBitmap from a System.Drawing.Bitmap. The bitmap bmp is referenced.
gmseBitmap(bmp As Bitmap, Copy As Int32)
Constructs a new gmseBitmap from a System.Drawing.Bitmap.
gmseBitmap(bmp As gmseBitmap)
gmseBitmap(f As Stream)
Constructs a new gmseBitmap from a open stream.
gmseBitmap(FileName As String)
Constructs a new gmseBitmap from a file.
gmseBitmap(Width As Int32, Height As Int32, fmt As PixelFormat)
Initializes a new instance of the gmseBitmap class with the specified size, pixel format, and pixel data.
Properties
ReadOnly Property Height() As System.Int32
Gets the height of this gmseBitmap in pixel.
ReadOnly Property HorizontalResolution() As System.Single
The horizontal resolution, in pixels-per-inch, of this gmseBitmap object.
ReadOnly Property Image() As System.Drawing.Bitmap
Gets the underlying System.Drawing.Bitmap of this gmseBitmap.
ReadOnly Property PixelFormat() As System.Drawing.Imaging.PixelFormat
Gets the pixel format for this gmseBitmap object.
ReadOnly Property VerticalResolution() As System.Single
The vertical resolution, in pixels-per-inch, of this gmseBitmap object.
ReadOnly Property Width() As System.Int32
Gets the width of this gmseBitmap in pixel.
Functions
Function Autocrop() As gmse.Imaging.gmseBitmap
Function Blur() As gmse.Imaging.gmseBitmap
Function Brightness(Value As Int32) As gmse.Imaging.gmseBitmap
Function Contrast(Value As Int32) As gmse.Imaging.gmseBitmap
Function ConvertTo1bbpIndexed() As gmse.Imaging.gmseBitmap
Function ConvertTo1bbpIndexed(LuminanceCutOff As Int32) As gmse.Imaging.gmseBitmap
Function CopyRectangle(r As Rectangle) As gmse.Imaging.gmseBitmap
Create a new gmseBitmap from the specified rectangle.
Function Deskew() As System.Boolean
Function DotRemoval() As gmse.Imaging.gmseBitmap
Function EdgeDetect() As gmse.Imaging.gmseBitmap
Function Emboss() As gmse.Imaging.gmseBitmap
Function Equals(obj As Object) As System.Boolean
Inherited from System.Object.
Function ExtractFrame(Index As Int32) As gmse.Imaging.gmseBitmap
Creates a new gmseBitmap from the specified page in the multipage TIFF.
Function Gamma(red As Double, green As Double, blue As Double) As gmse.Imaging.gmseBitmap
Function GetBlackCount(row As Int32) As System.Int32
Function GetFrameCount() As System.Int32
Gets the count of pages of the multipage tiff.
Function GetHashCode() As System.Int32
Inherited from System.Object.
Function GetHbitmap() As HBITMAP__*
Get the hBitmap of the underlying bitmap for use with windows API.
Function GetPixel(Col As Int32, row As Int32) As System.Int32
Gets the current color of the specified pixel.
Function GetType() As System.Type
Inherited from System.Object.
Function Grayscale() As gmse.Imaging.gmseBitmap
Function Invert() As gmse.Imaging.gmseBitmap
Function MeanRemoval() As gmse.Imaging.gmseBitmap
Function ReadBarcodes() As gmse.Imaging.gmseBarcodeInfoCollection
Read all Code 128 barcodes from the selected page of the image.
Function ReadBarcodes(parameter As gmseBarcodeReaderParameter) As gmse.Imaging.gmseBarcodeInfoCollection
Read barcodes from the image with the defined options.
Function Rotate(Degrees As Double) As gmse.Imaging.gmseBitmap
Function Sharpen() As gmse.Imaging.gmseBitmap
Function Smooth() As gmse.Imaging.gmseBitmap
Function Smooth(Weight As Int32) As gmse.Imaging.gmseBitmap
Function ToString() As System.String
Inherited from System.Object.
Subs
Sub __dtor()
Sub Access()
Begin a transaction to directly access the bitmap memory structure.
Sub ChangePixelFormat(fmt As PixelFormat)
Change the current Pixelformat.
Sub Clear(Color As Int32)
Sub Dispose()
Release allocated resources.
Sub DisposeReleaseRef()
Release the gmseBitmap object, but not the underlying System.Drawing.Bitmap.
Sub DrawRectangle(Color As Int32, r As Rectangle)
Sub FillRectangle(Color As Int32, r As Rectangle)
Fills the rectangle of the gmseBitmap with the specified color.
Sub ImproveBarcodes()
Sub Print(args As gmsePrintParameter)
Print the image.
Sub Release()
End transaction to the bitmap memory.
Sub Resample(DPIX As Double, DPIY As Double)
Change the resolution of this gmseBitmap. After resampling the real size of the bitmap is the same as before. Resampling a bitmap changes the size of the bitmap.
Sub RotateFlip(ft As RotateFlipType)
This method either rotates, flips, or rotates and flips the gmseBitmap object.
Sub Save(f As Stream, ci As ImageCodecInfo, eps As EncoderParameters)
Save this gmseBitmap to a stream.
Sub Save(FileName As String, ci As ImageCodecInfo, eps As EncoderParameters)
Save this gmseBitmap to a file.
Sub SaveAdd(bmp As gmseBitmap, eps As EncoderParameters)
To save an additional page in a multipage TIFF.
Sub SaveAdd(eps As EncoderParameters)
To save an additional page in a multipage TIFF.
Sub SelectActiveFrame(Index As Int32)
Selects the specified page.
Sub SetPixel(col As Int32, row As Int32, color As Int32)
Set the Pixel to the specified color.
Sub SetResolution(xDpi As Single, yDpi As Single)
Change the resolution of the bitmap without changing the width and height.
Sub StretchBlt(hDC As Int32, DestX As Int32, DestY As Int32, DestWidth As Int32, DestHeight As Int32, SourceX As Int32, SourceY As Int32, SourceWidth As Int32, SourceHeight As Int32)
StretchBlt for use with Windows API.
Sub WriteBarcode(Area As Rectangle, Code As String, DisplayNumber As Boolean)
Prints a Code 128 barcode in the specified rectangle.
Sub WriteBarcode(Area As Rectangle, Code As String, DisplayNumber As Boolean, FontSize As Single)
Prints a Code 128 barcode in the specified rectangle.
Thread Safety
Any instance members are not guaranteed to be thread safe.
Remarks
This is the main class of the GMSE Imaging tools. You can use this class to read barcodes, write barcodes and manipulate black white images.
Requirements
Namespace : gmse.Imaging
Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: gmseImaging.dll