Click or drag to resize
IGraphicFactoryCreateGraphic Method
Public API of XMLmind XSL-FO Converter for .NET
Creates a graphic which represents the illustration stored as specified location.

Namespace: XmlMind.FoConverter
Assembly: xfc-api (in xfc-api.dll) Version: 5.4.4
Syntax
IGraphic CreateGraphic(
	string location,
	string format,
	Object clientData,
	IGraphicEnv env
)

Parameters

location
Type: SystemString
location of the graphic file. The string form of an URI. May be a "data:" URI.
format
Type: SystemString
MIME type of the image to be created. This format is guaranteed to be listed by GetInputFormats.
clientData
Type: SystemObject
opaque client data to be associated with the newly created graphic
env
Type: XmlMind.FoConverterIGraphicEnv
services provided by XMLmind XSL-FO Converter

Return Value

Type: IGraphic
a newly created graphic
Exceptions
ExceptionCondition
Exceptionif, for any reason, this method fails
Remarks
IMPORTANT: the created Graphic must bear the resolution information stored in the source located by location. If this source does not contain any resolution information then the resolution fields of created Graphic must be set to 0.
See Also