This methods saves image data to a file

[Visual Basic]
Public Function SaveImageToFile(Val As Newtone.ImageKit.SaveFileType, Url As String) As Boolean
[C#]
public bool Newtone.ImageKit.SaveImageToFile(Newtone.ImageKit.SaveFileType Val, string Url) ;

Parameters

The format in which the image is to be saved. This value is of type Newtone.ImageKit.SaveFileType

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The SaveImageToFile method saves image data to a file.

The string set in the Url parameter determines the location where the image will be saved. This parameter uses a relative virtual path.

 

For example, if the image should be saved in the following virtual path:
"http://myserver/myfolder/myimage.jpg"

Set the Url parameter as follows:
     ImageKit1.Url = "/myserver/myfolder/myimage.jpg"

With certain raster image formats, it is only possible to save images of a particular bitcount. Errors can be generated it an image of unsupported bitcount is saved in an image format. Below is a list of supported bitcounts when saving each type of raster image.

Image File Format: Supported bitcounts when saving image
BMP(Uncompressed): 1, 4, 8, 16, 24, 32 (Does not include 16 bit grayscale)
JPEG(Standard DCT): 8 bit grayscale, 24 (All mages saved in JPEG will be saved as 24 bit)
GIF: 1, 4, 8
TIFF(Uncompressed): 1, 4, 8, 16, 24, 32 (Does not include 16 bit grayscale)
TIFF(CCITTRLE): 1
TIFF(GROUP3-1D): 1
TIFF(GROUP4): 1
TIFF(PACKBITS): 1, 4, 8, 16, 24, 32 (Does not include 16 bit grayscale)
TIFF(LZW): 1, 4, 8, 16, 24, 32 (Does not include 16 bit grayscale)
TIFF(JPEG): 1, 4, 8, 16, 24, 32 (Does not include 16 bit grayscale) All mages saved in will be saved as 24 bit
PNG: 1, 4, 8, 24

TIFF(Uncompressed) 16 bit, TIFF(PACKBITS) 16 bit, and TIFF(LZW) 16 bit will all be saved in 24 bit
WMF and EMF images cannot ordinarily be loaded and displayed in .NET but rather are converted to raster images when displayed.
For that reason, even though the file extension is .emf or .wmf, the images can only be saved as raster images.  

See Also

ImageKit.File Members | Newtone.ImageKit.Win.ImageKit

The ImageKit WPF is created by Newtone Corporation