LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
SaveStamp(RasterImage,String) Method
See Also 
Leadtools.Codecs Namespace > RasterCodecs Class > SaveStamp Method : SaveStamp(RasterImage,String) Method



image
The Leadtools.RasterImage object that contain the thumbnail (stamp) image.
fileName
A System.String containing the name of an existing image file.
image
The Leadtools.RasterImage object that contain the thumbnail (stamp) image.
fileName
A System.String containing the name of an existing image file.
Saves a stamp in an existing file with default options.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub SaveStamp( _
   ByVal image As RasterImage, _
   ByVal fileName As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterCodecs
Dim image As RasterImage
Dim fileName As String
 
instance.SaveStamp(image, fileName)
C# 
public void SaveStamp( 
   RasterImage image,
   string fileName
)
C++/CLI 
public:
void SaveStamp( 
   RasterImage^ image,
   String^ fileName
) 

Parameters

image
The Leadtools.RasterImage object that contain the thumbnail (stamp) image.
fileName
A System.String containing the name of an existing image file.

Example

Remarks

The stamp will be written to last page in the file. If that page already has a stamp, it will be overwritten; If the file to which the stamp is being written does not exist, an exception will occur.

This method works for regular JPEG files and Exif JPEG files. For regular JPEG files, the stamp saved is always uncompressed and can be 8 or 24 bits per pixel. The stamp can be any width and height, but the stamp data and stamp header must completely fit in an APP0 marker. Therefore, the size must be less than 64k bytes (0xFFFF).

For Exif JPEG files, the stamps can be uncompressed or JPEG compressed and must be 24 bits per pixel. Exif JPEG stamps are supposed to be 160 x 120. However, LEADTOOLS can save and read Exif JPEG stamps of other dimensions. The stamp, along with other information such as the TIFF_HEADER, 0th IFD, 1st IFD, etc. must completely fit in an APP1 marker. Therefore, the size must be less than 64k bytes (0xFFFF).

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also