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);
static HandleRef getCPtr(DwExportParams obj)
void setPageData(DwfPageDataArray pageData)
UInt16 maxRasterResolution()
bool skipNamedViewsInfo()
bool exportGradientAsRaster()
void setColorMapOptimize(bool bFlag)
void setExportInvisibleText(bool bFlag)
DwfPageDataArray pageData()
void setVersion(DwfVersion value)
void setSkipNamedViewsInfo(bool bFlag)
void setPublisher(String sPublisher)
void setEmbedAllFonts(bool bFlag)
bool exportInvisibleText()
void setForceInitialViewToExtents(bool bFlag)
void setUseHLR(bool bFlag)
void setMaxPointsInPolygon(UInt32 uValue)
void setRGBToJpeg(bool bFlag)
void setInkedArea(bool bFlag)
void setFormat(DW_FORMAT value)
DwExportParams(IntPtr cPtr, bool cMemoryOwn)
void setDwfFileName(String sDwfFileName)
UInt32 maxPointsInPolygon()
virtual void Dispose(bool disposing)
void setWideComments(String sWideComments)
void setYSize(Int32 iValue)
void setExportInvisibleLayers(bool bFlag)
void setMaxRasterResolution(UInt16 uValue)
void setXSize(Int32 iValue)
bool exportInvisibleLayers()
void setDatabase(OdRxObject pDb)
bool forceInitialViewToExtents()
void setLineweightScale(double s)
void setPassword(String sPassword)
void setExportGradientAsRaster(bool bFlag)
void setBackground(UInt32 background)
void setSourceProductName(String sSourceProductName)
String sourceProductName()
void setSkipLayerInfo(bool bFlag)
static HandleRef getCPtr(DwfPageDataArray obj)
static global::System.Exception Retrieve()
static global::System.IntPtr DwExportParams_pageData(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 DwExportParams_background(global::System.Runtime.InteropServices.HandleRef jarg1)
static String DwExportParams_dwfFileName(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_exportGradientAsRaster(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr DwExportParams_getPalette(HandleRef jarg1)
static void DwExportParams_setExportGradientAsRaster(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void DwExportParams_setBackground(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool DwExportParams_forceInitialViewToExtents(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setPageData(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void DwExportParams_setEmbedAllFonts(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void DwExportParams_setSkipLayerInfo(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void DwExportParams_setPassword(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static Int32 DwExportParams_ySize(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_skipLayerInfo(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setMaxPointsInPolygon(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void DwExportParams_setDwfFileName(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void DwExportParams_setLineweightScale(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static double DwExportParams_lineweightScale(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setInkedArea(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void DwExportParams_setForceInitialViewToExtents(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool DwExportParams_colorMapOptimize(global::System.Runtime.InteropServices.HandleRef jarg1)
static String DwExportParams_password(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_exportInvisibleText(global::System.Runtime.InteropServices.HandleRef jarg1)
static String DwExportParams_wideComments(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_inkedArea(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setSkipNamedViewsInfo(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool DwExportParams_embedAllFonts(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setPalette(HandleRef jarg1, IntPtr jarg2)
static void delete_DwExportParams(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setSourceProductName(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static IntPtr DwExportParams_database(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setExportInvisibleText(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void DwExportParams_setUseHLR(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void DwExportParams_setWideComments(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void DwExportParams_setMaxRasterResolution(global::System.Runtime.InteropServices.HandleRef jarg1, UInt16 jarg2)
static bool DwExportParams_exportInvisibleLayers(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setXSize(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static void DwExportParams_setFormat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void DwExportParams_setExportInvisibleLayers(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static int DwExportParams_format(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setVersion(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int DwExportParams_version(global::System.Runtime.InteropServices.HandleRef jarg1)
static Int32 DwExportParams_xSize(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_RGBToJpeg(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setDatabase(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static String DwExportParams_sourceProductName(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 DwExportParams_maxPointsInPolygon(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_useHLR(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DwExportParams_skipNamedViewsInfo(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setRGBToJpeg(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static String DwExportParams_publisher(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setPublisher(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static UInt16 DwExportParams_maxRasterResolution(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DwExportParams_setYSize(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static void DwExportParams_setColorMapOptimize(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static HandleRef getCPtr(OdRxObject obj)