public unsafe void Paint(Pad pad) { TView tview = TView.View(pad); this.uq63OYZaax = tview.Left; this.FP43FHdtWy = tview.Top; this.Jm23JdRAV2 = tview.H; this.C843M1JDuK = tview.H; this.Sp23PRDLnW = tview.o - new TVec3((double)this.uq63OYZaax, (double)this.FP43FHdtWy, 0.0); this.tn83Ged55u = tview.Lx; this.PqY3RZfYIU = tview.Ly; this.gcU3NtonPe = tview.Lz; this.trP3fdnMpS = tview.Light; if (this.Look == EChartLook.SurfaceOnly) { this.hH1321Stt8 = false; } Bitmap bitmap = new Bitmap(this.Jm23JdRAV2, this.C843M1JDuK, PixelFormat.Format32bppRgb); this.qDx3lDiW7U(pad, bitmap); Rectangle rect = new Rectangle(0, 0, this.Jm23JdRAV2, this.C843M1JDuK); BitmapData bitmapdata = bitmap.LockBits(rect, this.hH1321Stt8 ? ImageLockMode.WriteOnly : ImageLockMode.ReadWrite, PixelFormat.Format32bppRgb); this.Pnx3KTVZoc((int *)bitmapdata.Scan0.ToPointer()); bitmap.UnlockBits(bitmapdata); Color transparentColor = Color.FromArgb((int)byte.MaxValue, 0, 0, 0); bitmap.MakeTransparent(transparentColor); pad.Graphics.DrawImage((Image)bitmap, this.uq63OYZaax, this.FP43FHdtWy); }
public unsafe void Paint(Pad pad) { TView tview = TView.View(pad); this.uq63OYZaax = tview.Left; this.FP43FHdtWy = tview.Top; this.Jm23JdRAV2 = tview.H; this.C843M1JDuK = tview.H; this.Sp23PRDLnW = tview.o - new TVec3((double)this.uq63OYZaax, (double)this.FP43FHdtWy, 0.0); this.tn83Ged55u = tview.Lx; this.PqY3RZfYIU = tview.Ly; this.gcU3NtonPe = tview.Lz; this.trP3fdnMpS = tview.Light; if (this.Look == EChartLook.SurfaceOnly) this.hH1321Stt8 = false; Bitmap bitmap = new Bitmap(this.Jm23JdRAV2, this.C843M1JDuK, PixelFormat.Format32bppRgb); this.qDx3lDiW7U(pad, bitmap); Rectangle rect = new Rectangle(0, 0, this.Jm23JdRAV2, this.C843M1JDuK); BitmapData bitmapdata = bitmap.LockBits(rect, this.hH1321Stt8 ? ImageLockMode.WriteOnly : ImageLockMode.ReadWrite, PixelFormat.Format32bppRgb); this.Pnx3KTVZoc((int*)bitmapdata.Scan0.ToPointer()); bitmap.UnlockBits(bitmapdata); Color transparentColor = Color.FromArgb((int)byte.MaxValue, 0, 0, 0); bitmap.MakeTransparent(transparentColor); pad.Graphics.DrawImage((Image)bitmap, this.uq63OYZaax, this.FP43FHdtWy); }
public TView() { this.Light = new TLight(); this.scaleZ = 1.0; this.SetProjectionSpecial(-2.0, Math.PI / 6.0); }