Impact Vision SDK  11.8.1
VisionSDK.VisionImage Class Reference

This class represent an Image. This image is represented by a width, a height, the Pixel format, and an array of raw data. More...

Inheritance diagram for VisionSDK.VisionImage:
VisionSDK.VisionObject

Public Member Functions

 VisionImage ()
 Constructor More...
 
int bytesPerPixel ()
 Calculate the number of bytes per pixel based on the pixel format More...
 
System.Drawing.Imaging.PixelFormat systemPixelFormat ()
 Converts the VisionPixelFormat to the respective System.Drawing.Imaging.PixelFormat More...
 
Bitmap AsBitmap ()
 Convert the VisionImage to a Bitmap Object that can be displayed in a Windows Form PictureBox This method does not supprt Image transferred as PNG More...
 
static bool DeleteObject (IntPtr hObject)
 
ImageSource AsImageSource ()
 Converts the VisionImage to an ImageSource Object that can be displayed in a WPF PictureBox More...
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
- Public Member Functions inherited from VisionSDK.VisionObject
override string ToString ()
 
string ToJson ()
 
override int GetHashCode ()
 
override bool Equals (object obj)
 

Properties

int Width [get, set]
 The Image Width in Pixels More...
 
int Height [get, set]
 The Image height in Pixels More...
 
VisionPixelFormats PixelFormat [get, set]
 The Pixel Format More...
 
byte[] Data [get, set]
 The Array conaining the raw data More...
 
VisionCalibration Calibration [get, set]
 The Calibration Associated to the Image More...
 

Detailed Description

This class represent an Image. This image is represented by a width, a height, the Pixel format, and an array of raw data.

Constructor & Destructor Documentation

VisionSDK.VisionImage.VisionImage ( )

Constructor

Member Function Documentation

Bitmap VisionSDK.VisionImage.AsBitmap ( )

Convert the VisionImage to a Bitmap Object that can be displayed in a Windows Form PictureBox This method does not supprt Image transferred as PNG

Returns
The VisionImage converted to a Bitmap object
ImageSource VisionSDK.VisionImage.AsImageSource ( )

Converts the VisionImage to an ImageSource Object that can be displayed in a WPF PictureBox

Returns
The VisionImage converted to a ImageSource object
int VisionSDK.VisionImage.bytesPerPixel ( )

Calculate the number of bytes per pixel based on the pixel format

Returns
The number of bytes per pixels
static bool VisionSDK.VisionImage.DeleteObject ( IntPtr  hObject)
override bool VisionSDK.VisionImage.Equals ( object  obj)
override int VisionSDK.VisionImage.GetHashCode ( )
System.Drawing.Imaging.PixelFormat VisionSDK.VisionImage.systemPixelFormat ( )

Converts the VisionPixelFormat to the respective System.Drawing.Imaging.PixelFormat

Returns
The respective System.Drawing.Imaging.PixelFormat

Property Documentation

VisionCalibration VisionSDK.VisionImage.Calibration
getset

The Calibration Associated to the Image

byte [] VisionSDK.VisionImage.Data
getset

The Array conaining the raw data

int VisionSDK.VisionImage.Height
getset

The Image height in Pixels

VisionPixelFormats VisionSDK.VisionImage.PixelFormat
getset

The Pixel Format

int VisionSDK.VisionImage.Width
getset

The Image Width in Pixels

HTML Footer Datalogic Automation, Inc.    ©2016 Datalogic Automation Inc. All Rights Reserved