Barcode Tools for Crystal Reports > Reference > The Windows Image creator

Pic(res) method

The pic() method returns a graphic image. If the parameter res is 0 the image returned is a Windows metafile picture, while is res is non-zero the image is returned as a Portable Network Graphic image with a pixel resolution specified by the value of res. Typical value for res would be 300 or 600 (in dpi), and would normally be chosen to suit the printer on which the barcodes will be printed. Lower values are not recommended as these will not generate bar widths that are sufficiently accurate, and higher values generate images that require large amounts of memory.

The physical size of a metafile picture is contained within the image data, while the physical size of a Portable Network Graphic image is determined from the number or pixels per row (or column) and the resolution in pixels per inch. The PNG graphics generated contain the pHYs data block (which contains the size relevant information), but although this is supported by Crystal Reports, not all programs support this and so may display the image at a different size by assuming that there are 96 pixels per inch.

The Pic() method is used by the APS.NET routine for loading an image into a CR XI report.

 

More:

Picture property