See Also

Page Object

!UNRECOGNISED ELEMENT TYPE 'defaultmemberrequirements'!
Image
The physical file path of the image.
X
X coordinate of the image.
Y
Y coordinate of the image.
ImageScale

Optional. The scale to use when rendering the image. Default is 100.

Description

Adds a Image object to the Page and returns a new Image object.

Syntax

Public Function AddImage( _
   ByVal Image As Variant, _
   ByVal X As Single, _
   ByVal Y As Single, _
   Optional ByVal ImageScale As Single = 100 _
) As Image

Parameters

Image
The physical file path of the image.
X
X coordinate of the image.
Y
Y coordinate of the image.
ImageScale

Optional. The scale to use when rendering the image. Default is 100.

Return Type

A Image object.

Remarks

This class can be used to place images on a page. If an image will be used more than once, please see the Image Reuse topic.

Example

[ASP - VBScript] 

<% 
    ' Create a PDF Document 
    Dim MyDocument  
    Set MyDocument = Server.CreateObject( "DynamicPDF.Document" )  
    ' Create a Page and add it to the document 
    Dim MyPage  
    Set MyPage = MyDocument.AddPage() 
    ' Create an image and add the image to the page 
    Dim MyImage 
    Set MyImage = MyPage.AddImage( Server.MapPath( "Images/DynamicPDF.gif" ), 0, 0 ) 
    ' Draw the PDF 
    MyDocument.DrawToWeb 
    Set Mypage = Nothing 
    Set MyDocument = Nothing 
%> 

See Also

Page Object

 

 


© Copyright 2007, ceTe Software