Initializes a new image with the default size
Namespace:
CADImport
Assembly: CADImport (in CADImport.dll)
Syntax
Visual Basic (Declaration) |
Public Sub InitialNewImage() |
C#
|
public void InitialNewImage() |
Example
<p>Use
InitialNewImage example:</p>
<p>[C#]</p>
| Copy Code |
---|
if(cadImage != null)
cadImage.Dispose();
scale = 1;
prev_scale = 1;
pos = new PointF();
cadImage = new CADImage();
cadImage.SelectionMode = SelectionEntityMode.Enabled;
if(cadPictBox.BackColor == Color.White)
White_Click();
else
Black_Click();
cadImage.InitialNewImage();
EnableButton(true);
trvEntity.Nodes.Clear();
DoResize(cadImage, ref pos, cadPictBox, ref curClRect, deactiv);
ObjEntity.cadImage = cadImage; //for object inspector
ObjEntity.propGrid = propGrid; //for object inspector
cadImage.UseWinEllipse = false;
entCreator.Image = cadImage;
prtForm.Image = cadImage;
SetLayList();
|
Platforms
Version Information
.NET Framework
Supported in: 2.0 - 4, NET6
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
See Also