AddImageEx Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:14

Description

Creates an image on the page with the specified parameters.

If the width and height are 0, the picture is placed at actual size.

Syntax

Page.AddImageEx (dim1, dim2, dim3, dim4, int5, lng6, dim7, dim8, dim9, dim10, str11)

dim1        X

position, in mpt. 0 is left edge of the page. Add Page.GetLeftM to a value, to start from the left margin.

dim2        

Y position, in mpt. 0 is top edge of the page. Add Page.GetTopM to a value, to start from the top margin.

dim3        

width, in mpt.

dim4        

height, in mpt.

int5        

rotation angle, counter-clock wise, in tenths of degree

lng6        

Picture database id.

dim7        

crop X position

dim8        

crop Y position

dim9        

crop width

dim10        

crop height

str11        

color name (to be used with line art, when needed)

Example of parameters

Rotation angle

0

non-rotated element

450

rotated for 45° around top left corner, counter-clockwise

-335

rotated for 33.5° around top-left corner, clockwise

 

Context

Page designer

See also

ArticleNewPicture Method

All image related commands

AddImageEx, ArticleNewPicture, ImgInsert, ImgInsertId, ImgInsertType, ImgNewDummyEx

ImgCrop, ImgSetCrop, GetImgCropHeight, GetImgCropLeft, GetImgCropTop, GetImgCropWidth, GetImgHeight, GetImgWidth

ImgZoom, ImgZoomPct, ViewZoomImage, GetImgZoomPctX, GetImgZoomPctY

GetSelectedImgId, GetSelectedImgDummy,

ImgGetColor, ImgSetColor, ImgGetFlag, ImgSetFlag, ImgImportPath Method

ImgTrace, ImgTraceDlg, ImgTraceEx

ImgUpdate, TxtSelectReference, ViewShowImg

All object creation related commands

AddBoxEx, AddElliEx, AddHRuleEx, AddImageEx, AddLibObj, AddLibObjId, AddVRuleEx, ArticleNewPicture

EditPaste, EditPasteAttrib, EditPasteEx, ImgInsert, ObjDuplicate