<< Click to Display Table of Contents >> AddImageShapeByCode |
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.
b: 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:
private void button1_Click(object sender, System.EventArgs e)
{
Bitmap b = new Bitmap(@"d:\images\cover.bmp");
myCAD1.AddImageShapeByCode("Image1",new Point(100,100),b);
}