Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdThumbnailImage.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdThumbnailImage : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdThumbnailImage(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdThumbnailImage obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
52 set {
55 }
56 get {
57 global::System.IntPtr cPtr = GlobalsPINVOKE.OdThumbnailImage_header_get(swigCPtr);
58 OdBinaryData ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdBinaryData(cPtr, false);
60 return ret;
61 }
62 }
63
65 set {
68 }
69 get {
70 global::System.IntPtr cPtr = GlobalsPINVOKE.OdThumbnailImage_bmp_get(swigCPtr);
71 OdBinaryData ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdBinaryData(cPtr, false);
73 return ret;
74 }
75 }
76
78 set {
81 }
82 get {
83 global::System.IntPtr cPtr = GlobalsPINVOKE.OdThumbnailImage_wmf_get(swigCPtr);
84 OdBinaryData ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdBinaryData(cPtr, false);
86 return ret;
87 }
88 }
89
91 set {
94 }
95 get {
96 global::System.IntPtr cPtr = GlobalsPINVOKE.OdThumbnailImage_png_get(swigCPtr);
97 OdBinaryData ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdBinaryData(cPtr, false);
99 return ret;
100 }
101 }
102
103 public bool hasHeader() {
104 bool ret = GlobalsPINVOKE.OdThumbnailImage_hasHeader(swigCPtr);
106 return ret;
107 }
108
109 public bool hasBmp() {
110 bool ret = GlobalsPINVOKE.OdThumbnailImage_hasBmp(swigCPtr);
112 return ret;
113 }
114
115 public bool hasWmf() {
116 bool ret = GlobalsPINVOKE.OdThumbnailImage_hasWmf(swigCPtr);
118 return ret;
119 }
120
121 public bool hasPng() {
122 bool ret = GlobalsPINVOKE.OdThumbnailImage_hasPng(swigCPtr);
124 return ret;
125 }
126
127 public int getNumEntries() {
130 return ret;
131 }
132
133 public bool convPngToBmp() {
136 return ret;
137 }
138
139 public bool convBmpToPng() {
142 return ret;
143 }
144
145 public void setImageData(IntPtr /*SIMPLETYPE*/ pData, UInt32 /*SIMPLETYPE*/ dataLengt) {
146 GlobalsPINVOKE.OdThumbnailImage_setImageData(swigCPtr, pData /*SIMPLETYPE*/, dataLengt /*SIMPLETYPE*/);
148 }
149
150 public IntPtr getImageData(out UInt32 /*SIMPLETYPE*/ dataLengt) {
151// test csout
152 /*SIMPLETYPE*/
153 IntPtr ret = GlobalsPINVOKE.OdThumbnailImage_getImageData(swigCPtr, out dataLengt);
155 return ret;
156 }
157
158 public bool setRasterImage(OdGiRasterImage image) {
161 return ret;
162 }
163
164 public OdGiRasterImage getRasterImage() {// OdGiRasterImagePtr
165 MemoryManager mMan = MemoryManager.GetMemoryManager();
166 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
167 IntPtr ptr = GlobalsPINVOKE.OdThumbnailImage_getRasterImage(swigCPtr);
168
169 OdGiRasterImage ret = null;
170 if (null != mTrans)
171 {
172 mTrans.AddObject((OdGiRasterImage)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiRasterImage),ptr, true));
173 ret = (OdGiRasterImage)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiRasterImage),ptr, false);
174 }
175 else
176 {
177 ret = (OdGiRasterImage)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiRasterImage),ptr, true);
178 }
179
181 return ret;
182}
183
184 public OdThumbnailImage() : this(GlobalsPINVOKE.new_OdThumbnailImage(), true) {
186 }
187
188}
189
190}
static global::System.Exception Retrieve()
static bool OdThumbnailImage_hasBmp(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdThumbnailImage_hasWmf(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdThumbnailImage_setImageData(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, UInt32 jarg3)
static global::System.IntPtr OdThumbnailImage_bmp_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdThumbnailImage(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdThumbnailImage_getNumEntries(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdThumbnailImage_wmf_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdThumbnailImage_hasPng(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdThumbnailImage_bmp_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdThumbnailImage_header_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdThumbnailImage_setRasterImage(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static bool OdThumbnailImage_convBmpToPng(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdThumbnailImage_getImageData(global::System.Runtime.InteropServices.HandleRef jarg1, out UInt32 jarg2)
static void OdThumbnailImage_wmf_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdThumbnailImage_convPngToBmp(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdThumbnailImage_hasHeader(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdThumbnailImage_getRasterImage(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdThumbnailImage_png_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdThumbnailImage_header_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdThumbnailImage_png_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdBinaryData obj)
Definition: OdBinaryData.cs:25
static HandleRef getCPtr(OdGiRasterImage obj)
static HandleRef getCPtr(OdThumbnailImage obj)
bool setRasterImage(OdGiRasterImage image)
OdThumbnailImage(IntPtr cPtr, bool cMemoryOwn)
IntPtr getImageData(out UInt32 dataLengt)
OdGiRasterImage getRasterImage()
void setImageData(IntPtr pData, UInt32 dataLengt)
virtual void Dispose(bool disposing)