Victor Library -- Image Descriptor Definition

VB.NET | C# | Visual Basic 6 | C/C++ | Java

C#

Image Descriptor, as defined in viclib namespace

public struct imgdes {
 public int ibuff; // Image buffer address
 public int stx; // X-coordinate of upper left corner of image area to be processed
 public int sty; // Y-coordinate of upper left corner of image area to be processed
 public int endx; // X-coordinate of lower right corner of image area to be processed
 public int endy; // Y-coordinate of lower right corner of image area to be processed
 public int buffwidth; // Image buffer width in bytes
 public int palette; // Address of palette associated with the image
 public int colors; // Number of palette colors
 public int imgtype; // Image type: bit 0 = 1 if image is grayscale
 public int bmh; // BITMAPINFOHEADER header and DIB address
 public int hBitmap; // Device-independent bitmap handle
} imgdes;

VB.NET

Image Descriptor, as defined in viclib namespace

Structure imgdes
  Dim ibuff As Integer 'Image buffer address
 Dim stx As Integer 'X-coordinate of upper left corner of image area to be processed
 Dim sty As Integer 'Y-coordinate of upper left corner of image area to be processed
 Dim endx As Integer 'X-coordinate of lower right corner of image area to be processed
 Dim endy As Integer 'Y-coordinate of lower right corner of image area to be processed
 Dim buffwidth As Integer 'Image buffer width in bytes
 Dim palette As Integer 'Address of palette associated with the image
 Dim colors As Integer 'Number of palette colors
 Dim imgtype As Integer 'Image type: bit 0 = 1 if image is grayscale
 Dim bmh As Integer 'BITMAPINFOHEADER header and DIB address
 Dim hBitmap As Integer 'Device-independent bitmap handle
End Structure

Visual Basic 6

Image Descriptor, as defined in vicdef32.bas

Type imgdes
 ibuff As Long 'Image buffer address
 stx As Long 'X-coordinate of upper left corner of image area to be processed
 sty As Long 'Y-coordinate of upper left corner of image area to be processed
 endx As Long 'X-coordinate of lower right corner of image area to be processed
 endy As Long 'Y-coordinate of lower right corner of image area to be processed
 buffwidth As Long 'Image buffer width in bytes
 palette As Long 'Address of palette associated with the image
 colors As Long 'Number of palette colors
 imgtype As Long 'Image type: bit 0 = 1 if image is grayscale
 bmh As Long 'BITMAPINFOHEADER header and DIB address
 hBitmap As Long 'Device-independent bitmap handle
End Type

C/C++

Image Descriptor, as defined in vicdefs.h

typedef struct {
 unsigned char *ibuff; // Image buffer address
 unsigned stx; // X-coordinate of upper left corner of image area to be processed
 unsigned sty; // Y-coordinate of upper left corner of image area to be processed
 unsigned endx; // X-coordinate of lower right corner of image area to be processed
 unsigned endy; // Y-coordinate of lower right corner of image area to be processed
 unsigned buffwidth; // Image buffer width in bytes
 RGBQUAD *palette; // Address of palette associated with the image
 int colors; // Number of palette colors
 int imgtype; // Image type: bit 0 = 1 if image is grayscale
 BITMAPINFOHEADER *bmh; // BITMAPINFOHEADER header and DIB address
 HBITMAP hBitmap; // Device-independent bitmap handle
} imgdes;

Java

Image Descriptor, as defined in imgdes.java

package vic;

public class imgdes{
 public int ibuff; // Image buffer address
 public int stx; // X-coordinate of upper left corner of image area to be processed
 public int sty; // Y-coordinate of upper left corner of image area to be processed
 public int endx; // X-coordinate of lower right corner of image area to be processed
 public int endy; // Y-coordinate of lower right corner of image area to be processed
 public int buffwidth; // Image buffer width in bytes
 public int palette; // Address of palette associated with the image
 public int colors; // Number of palette colors
 public int imgtype; // Image type: bit 0 = 1 if image is grayscale
 public int bmh; // BITMAPINFOHEADER header and DIB address
 public int hBitmap; // Device-independent bitmap handle
 public int biwidth; // Pixel width of image
 public int biheight; // Pixel length of image
 public short bibitcount; // Pixel depth of image
}