AutoBitmap Object

The AutoBitmap contains all the properties of imported bitmaps. Owned by the AutoShapes Collection.

Properties

ColorBits

Height

Opacity

Width

Example

This example shows how to import an image file into a Grapher plot as an AutoBitmap object

Sub Main

'Declares GrapherApp as an object

Dim GrapherApp As Object

 

'Creates an instance of the Grapher Application

'object and assigns it to the variable named "GrapherApp"

Set GrapherApp = CreateObject("Grapher.Application")

 

'Makes Grapher visible

GrapherApp.Visible = True

 

'Declares Plot as an object

Dim Plot As Object

 

 'Creates a plot document in Grapher and

 'assigns it to the variable named "Plot"

 Set Plot = GrapherApp.Documents.Add(grfPlotDoc)

 

'Declares Shapes as an object

 Dim Shapes As Object

 

'Assigns the AutoShapes collection to

'the variable named "Shapes"

Set Shapes = Plot.Shapes

 

'Declares Bitmap1 as an object

Dim Bitmap1 As Object

 

'Import an image file As a Bitmap Object

Set Bitmap1 = Plot.Import(GrapherApp.Path + "\UserImages.bmp")

 

End Sub