Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
ImageResource.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 ImageResource : 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 ImageResource(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(ImageResource 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
51 public ImageResource() : this(GlobalsPINVOKE.new_ImageResource__SWIG_0(), true) {
53 }
54
55 public ImageResource(ImageResource data) : this(GlobalsPINVOKE.new_ImageResource__SWIG_1(ImageResource.getCPtr(data)), true) {
57 }
58
59 public void Copy(ImageResource from) {
62 }
63
65 set { // OdString csvarin
68 }
69
70 get { // OdString csvarout
71 string ret = GlobalsPINVOKE.ImageResource_sFileName_get(swigCPtr);
73 return ret;
74 }
75
76 }
77
78 public Int32 ColorDepth {
79 set {
80 /*SIMPLETYPE*/
81 GlobalsPINVOKE.ImageResource_ColorDepth_set(swigCPtr, value /*SIMPLETYPE*/);
83 }
84 get {
85 /*SIMPLETYPE*/
86 Int32 ret = GlobalsPINVOKE.ImageResource_ColorDepth_get(swigCPtr);
88 return ret;
89 }
90 }
91
92 public Int32 Width {
93 set {
94 /*SIMPLETYPE*/
95 GlobalsPINVOKE.ImageResource_Width_set(swigCPtr, value /*SIMPLETYPE*/);
97 }
98 get {
99 /*SIMPLETYPE*/
100 Int32 ret = GlobalsPINVOKE.ImageResource_Width_get(swigCPtr);
102 return ret;
103 }
104 }
105
106 public Int32 Height {
107 set {
108 /*SIMPLETYPE*/
109 GlobalsPINVOKE.ImageResource_Height_set(swigCPtr, value /*SIMPLETYPE*/);
111 }
112 get {
113 /*SIMPLETYPE*/
114 Int32 ret = GlobalsPINVOKE.ImageResource_Height_get(swigCPtr);
116 return ret;
117 }
118 }
119
120}
121
122}
static global::System.Exception Retrieve()
static void ImageResource_ColorDepth_set(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static Int32 ImageResource_Height_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ImageResource_sFileName_set(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void ImageResource_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void ImageResource_Width_set(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static String ImageResource_sFileName_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static Int32 ImageResource_Width_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ImageResource_Height_set(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static void delete_ImageResource(global::System.Runtime.InteropServices.HandleRef jarg1)
static Int32 ImageResource_ColorDepth_get(global::System.Runtime.InteropServices.HandleRef jarg1)
ImageResource(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(ImageResource obj)
void Copy(ImageResource from)
virtual void Dispose(bool disposing)
ImageResource(ImageResource data)