Image
Previous Topic  Next Topic 

 

 

sdTextureManager

 

An image file can be created as a raster image and added into the sdTextureManager. The raster image(sdTextureItem) can later be assigned to the sdImage object. 

 

 

private void btImage_Click(object sender, EventArgs e)

{

         // Add a raster image into the TextureManager's collection.

         sdTextureItem ti = fDrawCtrl1.Document.TextureMng.Add("droidPhoto.png");

         // Create a sdImage object with the associated textureItem ti.

         fDrawCtrl1.Document.AddImage(ti, new Point3D(0, -10, 0), 5, 0); 

         fDrawCtrl1.Document.ZoomAll();

         fDrawCtrl1.Refresh();

}