Click or drag to resize

AtalaImageCompressorCreateImageShape Method

Utility method to create an image shape using the provided image. 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 PdfImageShape CreateImageShape(
	GlobalResources gr,
	AtalaImage image


Type: Atalasoft.PdfDoc.Generating.ResourceHandlingGlobalResources
The global resources to which the image will be added.
Type: Atalasoft.ImagingAtalaImage
The image from which the shape will be made.

Return Value

Type: PdfImageShape
A new PdfImageShape representing the image supplied
After calling this method the AtalaImage will no longer be needed and can be disposed.
See Also