|
|
ImageToFile Method
Saves the control image to a file.
Syntax
FlpGrf.ImageToFile( FileName As String, Width As Integer, Height As Integer [, Bits As Integer] [, DPI As Integer] )
The ImageToFile method has these parts:
|
Part |
Description |
|
FlpGrf |
An object expression that evaluates the Flipper Graph ASP object. |
|
FileName |
String representing the path and name of the destination file. |
|
Width |
Width of image in pixels. |
|
Height |
Height of image in pixels |
|
Bits |
Resolution of the bitmap file. Negative Bits value turn off compression. 0 - Compatible (whatever resolution your display is currently in). 1 - Monochrome. 4 - 16 color. 8 - 256 color. 24 - True color. |
|
DPI |
Set the image resolution. Default is the screen resolution. |
Remarks
This method saves the contents of the Flipper Graph Control image to a bitmap file, which can then be included in other programs. It also allows you to set the size of the image in pixels. The larger the image, the smaller the screen fonts will appear on the image. To compensate for this effect, you can set the dot per inch for the image and the fonts and line thickness will increase so larger images will appear in the same relative scale as the screen. For example, if the image was going to be printed to a HP LaserJet 4, then you would want a resolution of 300 DPI.
The default printer resolution is stored in PrintDpiWidth
Note: Windows NT 3.x can not handle compressed bmp images as a PaintBrush Class. Image compression can be turned off by entering a negative Bits value.
Example
Image Example
nImageHeight = Text2 * FlpGrf1.PrintDpiWidth
FlpGrf1.ImageToFile "Image.bmp", nImageWidth, nImageHeight, nBits, nDPI
See Also
All Picture Routines, ImageToClipboard Method, ImageToFile Method, ImageToGif Method, ImageToTransGif Method, ImageToPNG Method
![]() |
Last modified on: Friday, October 19, 2001