Click or drag to resize

AtalaImageCompressorAddImageResource Method

Utility method to add the image to the resources respecting the color profile of the image (if any). This method will throw a PDFException if AtalaImageCompressor was not added as a compressor in the passed GlobalResources parameter.

Namespace:  Atalasoft.dotImage.PdfDoc.Bridge
Assembly:  Atalasoft.dotImage.PdfDoc.Bridge (in Atalasoft.dotImage.PdfDoc.Bridge.dll) Version: (.NET 4.5.2, x86)
public static string[] AddImageResource(
	GlobalResources gr,
	AtalaImage image


Type: Atalasoft.PdfDoc.Generating.ResourceHandlingGlobalResources
The global resources to add to.
Type: Atalasoft.ImagingAtalaImage
The image to add to the resources.

Return Value

Type: String
An array of strings with the resource names arr[0] is the image resource name and arr[1] is the colorspace resource name (if any)
After calling this method the AtalaImage will no longer be needed and can be disposed.
See Also