14using System.Runtime.InteropServices;
17 private Object locker =
new Object();
18 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 swigCPtr =
new HandleRef(
this, cPtr);
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
36 global::System.GC.SuppressFinalize(
this);
39 protected virtual void Dispose(
bool disposing) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
46 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
51 private static UInt32[] UnMarshalPalette(IntPtr p)
55 UInt32[] res =
new UInt32[256];
56 for (
int i = 0; i < 256; ++i)
58 res[i] = (UInt32)Marshal.ReadInt32(p, i * 4);
62 private static IntPtr MarshalPalette(UInt32[] p)
67 throw new Exception(
"MarshalPalette: palette size must be 256");
68 IntPtr res = Marshal.AllocCoTaskMem(256 * 4);
69 for (
int i = 0; i < 256; ++i)
71 Marshal.WriteInt32(res, i * 4, (Int32)p[i]);
84 IntPtr p = MarshalPalette(
value);
86 Marshal.FreeCoTaskMem(p);
Dwf3dExportParams(IntPtr cPtr, bool cMemoryOwn)
virtual void Dispose(bool disposing)
void setXSize(Int32 iValue)
void setThumbnail(ImageResource thumbnail)
void setTitle(String sTitle)
void setDwfFileName(String sDwfFileName)
void setBackground(UInt32 background)
ImageResource thumbnail()
void setYSize(Int32 iValue)
void setDatabase(OdRxObject pDb)
static HandleRef getCPtr(Dwf3dExportParams obj)
static global::System.Exception Retrieve()
static void delete_Dwf3dExportParams(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr Dwf3dExportParams_database(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Dwf3dExportParams_setDatabase(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static String Dwf3dExportParams_dwfFileName(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr Dwf3dExportParams_thumbnail(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr Dwf3dExportParams_getPalette(HandleRef jarg1)
static void Dwf3dExportParams_setYSize(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static UInt32 Dwf3dExportParams_background(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Dwf3dExportParams_setDwfFileName(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static String Dwf3dExportParams_title(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Dwf3dExportParams_setThumbnail(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static Int32 Dwf3dExportParams_xSize(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Dwf3dExportParams_setPalette(HandleRef jarg1, IntPtr jarg2)
static void Dwf3dExportParams_setBackground(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void Dwf3dExportParams_setTitle(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static Int32 Dwf3dExportParams_ySize(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Dwf3dExportParams_setXSize(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static HandleRef getCPtr(ImageResource obj)
static HandleRef getCPtr(OdRxObject obj)