SaveOffset method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int SaveOffset(AnsiString pszName, int nOffsetBegin, int nFormat, int nBitsPerPixel, int nQuality, int nModify);

Delphi Syntax

Function SaveOffset (pszName: String; nOffsetBegin: Integer; nFormat: Integer; nBitsPerPixel: Integer; nQuality: Integer; nModify: Integer): Integer;

Overview

Refer to Saving a Bitmap to a File

Remarks

Saves a bitmap to a file, in any supported format, starting at the specified offset. This enables you to embed an image file in another file.

This method is similar to the Save method, with the following differences:

the file can be saved starting at any file offset. 

when saving an animated GIF, only the first bitmap in the list is saved. 

the FileSizeWritten property is updated with the total file size, in bytes.

Support for 12 and 16-bit gray-scale images is available only in the Document/Medical toolkits.

For a list of available products, refer to Topic Selection.

This method supports signed data images, but only DICOM and TIFF formats support signed data. This method will return an error code if you attempt to save a signed image to a format other than DICOM or TIFF.

If the bitmap has a region, the region stored in the bitmap will be saved, if the image is saved as one of the TIFF file formats.

See Also

Elements:

SaveWithStamp method, SaveMemory method, ShowSaveDlg method, SaveTileHeight property, SaveTileWidth property

Topics:

Raster Images: Saving Files, Raster Images: Creating and Maintaining Lists of Images