.NET Framework Class Library
NeutralFormat.MDAddImage Method

<< Click to Display Table of Contents >>

Navigation:  MwPDMApi Namespace > NeutralFormat Class > NeutralFormat Methods >

.NET Framework Class Library
NeutralFormat.MDAddImage Method

Add an image to the Master Drawing identified with the handler MDid

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Sub MDAddImage ( _

 mdid As Integer, _
 x As Double, _
 y As Double, _
 width As Double, _
 height As Double, _
 imgFileName As String, _
 transparent As Boolean _
)

C#

public void MDAddImage(

 int mdid,
 double x,
 double y,
 double width,
 double height,
 string imgFileName,
 bool transparent
)

Visual C++

public:

void MDAddImage(
 int mdid,
 double x,
 double y,
 double width,
 double height,
 StringimgFileName,
 bool transparent
)

JavaScript

function mdAddImage(mdidxywidthheightimgFileNametransparent);

Parameters

mdid

Type: System.Int32
Master Drawing handler

x

Type: System.Double
point (in millimeters) on the x axe where the image will be added

y

Type: System.Double
point (in millimeters) on the y axe where the image will be added

width

Type: System.Double
width (in millimeters) of the image to be placed

height

Type: System.Double
height (in millimeters) of the image to be placed

imgFileName

Type: System.String
full path name of the image file to be added; .BMP .JPG .PNG are supported

transparent

Type: System.Boolean
false: opaque

true: transparent, and will make transparent the color WHITE (RGB(255,255,255)).

NOTE: This parameter is effective with TIF format only

See Also

NeutralFormat Class

NeutralFormat Members

MwPDMApi Namespace