AddImageShapeByCode

Top  Previous  Next

public Int64 AddImageShapeByCode(String shapeName,Point ltPoint,Bitmap b)

 

Description:

 Add image shape by code, if you want add other shape, please use procedure AddShapeByCode or AddUserDefineShapeFromLib

 

Parameter:

 shapeName: Image shape's name

 ltPoint: The point of the image's Lfte -Top corner.

  A image that you want add into TCAD

 

Return value:

 Return value =-1,add shape unsuccessfully.

 Return value >=0,add shape successfully,the value is the ShapeId of the new shape

 

Example:

 privatevoid button1_Click(object sender, System.EventArgs e)

 {

         Bitmap b = new Bitmap(@"d:\images\cover.bmp");

         myCAD1.AddImageShapeByCode("Image1",new

 }