IGraphicFactoryCreateGraphic Method |
Public API of XMLmind XSL-FO Converter for .NET
Creates a graphic which represents the illustration stored as specified
location.
Namespace: XmlMind.FoConverterAssembly: xfc-api (in xfc-api.dll) Version: 6.3.0
Syntax IGraphic CreateGraphic(
string location,
string format,
Object clientData,
IGraphicEnv env
)
Function CreateGraphic (
location As String,
format As String,
clientData As Object,
env As IGraphicEnv
) As IGraphic
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:
IGraphica newly created graphic
Exceptions Exception | Condition |
---|
Exception | if, 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