FolderItem.OpenAsVectorPicture Function

Opens the FolderItem to be read as a vector Picture. It will do its best to convert a PICT file (on Macintosh) or an .emf file (Windows) to a Picture composed of Object2D objects.

Syntax
result = FolderItem.OpenAsVectorPicture( )

Return Value
Result | Picture

# Notes

The original file may contain elements that do not have an equivalent Object2D object. REALbasic will do its best to map these objects, but there may be some loss of information, depending on the characteristics of the original file. PICTs support unrotated Rectangles, Lines, Ellipses, RoundRects, Polygons, Text, Pixmaps, and Arcs.

.emf files support unrotated Rectangles, Lines, Ellipses, RoundRects, Polygons, Text, Pixmaps and Arcs.

.emf files are displayed as actual size. For the most part this is huge; you probably will want to scale them down before viewing (pic1.objects.scale = scalingFactor). We find that a scale factor of 0.045 is a good value.