CAD parameters drawn picture (Android version)

The user can draw pictures in any position control viewport.


The main use of Function:


MxFunction.drawImageMarkEx


Draw a marker object image. Details are as follows:


parameter Explanation

String imageFile

Mark the file name

double dDx

Drawing position, is the center point of the picture X

double dDy

Drawing position, y is the center point of the picture

double dScale

Scaling, if a negative input, indicates with the viewport image size scaling, a negative decision value indicates the height of the image, the image width automatic calculation

int iAttachment

Alignment


Code Implementation Notes:


MxFunction.openCurrentLayer();
MxFunction.drawImageMarkEx("location2.png",19354.596193,19813.267774,0.5,MxFunction.ImageAttachment.kBottomCenter);

Guess you like

Origin www.cnblogs.com/yzy0224/p/11102198.html