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: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public static string[] AddImageResource(
	GlobalResources gr,
	AtalaImage image
)

Parameters

gr
Type: Atalasoft.PdfDoc.Generating.ResourceHandlingGlobalResources
The global resources to add to.
image
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)
Remarks
After calling this method the AtalaImage will no longer be needed and can be disposed.
See Also