The Pic(type) method

The Pic(type) method return a Variant type that contains the image to be transmitted to the browser.

The variant may be obtained by code on the server of the form:

Dim vntStream
vntStream=Pic(0)

And may be transitted to the browser using

Response.ContentType=”image/gif”
Response.BinaryWrite(vntStream)

The type parameter specifies the type of image created by the method, and the ContentType response must match the graphic type chosen. The allowed values are:

 

Type

image type

ContentType

0

GIF image

image/gif

1

PNG image

image/x_png

2

WMF image

image/x_wmf

 

After the Pic(type) method has been called, the PictureHeight and PictureWidth properties contain the height and width of the image (in pixels).

Note that WMF files are useable only on Microsoft Windows systems, and that not all browsers support this image type – although all versions of Internet Explorer do.

 

 

 

More:

Barcode-2D IMG Reference