04 MIDAS CLASSES/GeniiRTChunk
ExportGraphic method
Version added: 2.40
Exports the first
graphic image in the chunk to a file on disk, if the underlying
graphic is an imported JPEG or GIF file.
Defined in
Syntax
Call
geniiRTChunk
.ExportGraphic(
filePath
)
Parameter
filePath
String.
The full path (or path relative to the working directory) of the file
to which the graphic will be exported.
Set
rtchunk = rtitem.DefineChunk("Graphic 1")
found
= False
While
rtchunk.Exists And Not found
If rtchunk.GraphicFormat <> "Notes
Bitmap" Then
Call rtchunk.
ExportGraphic
(filename)
found = True
End If
rtchunk.GetNextTarget
Wend