Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxPreviewBitmap.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 PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
18public class CFxPreviewBitmap : global::System.IDisposable {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 protected bool swigCMemOwn;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 public CFxPreviewBitmap(IntPtr cPtr, bool cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = new HandleRef(this, cPtr);
26 }
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 public static HandleRef getCPtr(CFxPreviewBitmap obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
33 Dispose(false);
34 }
35
36 public void Dispose() {
37 Dispose(true);
38 global::System.GC.SuppressFinalize(this);
39 }
40
41 protected virtual void Dispose(bool disposing) {
42 lock(this) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
44 if (swigCMemOwn) {
45 swigCMemOwn = false;
47 }
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
49 }
50 }
51 }
52
53 public static CFxPreviewBitmap Create() {
54 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxPreviewBitmap_Create();
55 CFxPreviewBitmap ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxPreviewBitmap(cPtr, false);
57 return ret;
58 }
59
60 public virtual bool Read(CFxString lpFileName) {
61 bool ret = PCADGlobalsPINVOKE.CFxPreviewBitmap_Read__SWIG_0(swigCPtr, CFxString.getCPtr(lpFileName));
63 return ret;
64 }
65
66 public virtual bool HasPreview() {
69 return ret;
70 }
71
72 public virtual void Clear() {
75 }
76
77 public virtual bool Read(SWIGTYPE_p_IStream pStream) {
78 bool ret = PCADGlobalsPINVOKE.CFxPreviewBitmap_Read__SWIG_1(swigCPtr, SWIGTYPE_p_IStream.getCPtr(pStream));
80 return ret;
81 }
82
83 public virtual void DrawToHDC(SWIGTYPE_p_HDC dc, int x, int y, int width, int height) {
84 PCADGlobalsPINVOKE.CFxPreviewBitmap_DrawToHDC(swigCPtr, SWIGTYPE_p_HDC.getCPtr(dc), x, y, width, height);
86 }
87
88 public virtual void GetBitmapAndPalette(SWIGTYPE_p_HBITMAP image, SWIGTYPE_p_HPALETTE hPalette) {
91 }
92
93 public static void DrawNoPreview(SWIGTYPE_p_HDC hDC, SWIGTYPE_p_RECT lprc, SWIGTYPE_p_COLORREF pBgColor) {
96 }
97
98}
99
100}
virtual void GetBitmapAndPalette(SWIGTYPE_p_HBITMAP image, SWIGTYPE_p_HPALETTE hPalette)
static HandleRef getCPtr(CFxPreviewBitmap obj)
CFxPreviewBitmap(IntPtr cPtr, bool cMemoryOwn)
virtual void Dispose(bool disposing)
virtual bool Read(SWIGTYPE_p_IStream pStream)
static CFxPreviewBitmap Create()
virtual bool Read(CFxString lpFileName)
virtual void DrawToHDC(SWIGTYPE_p_HDC dc, int x, int y, int width, int height)
static void DrawNoPreview(SWIGTYPE_p_HDC hDC, SWIGTYPE_p_RECT lprc, SWIGTYPE_p_COLORREF pBgColor)
static HandleRef getCPtr(CFxString obj)
Definition: CFxString.cs:28
static void CFxPreviewBitmap_DrawNoPreview(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool CFxPreviewBitmap_Read__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxPreviewBitmap_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_CFxPreviewBitmap(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxPreviewBitmap_HasPreview(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxPreviewBitmap_Create()
static bool CFxPreviewBitmap_Read__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxPreviewBitmap_GetBitmapAndPalette(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxPreviewBitmap_DrawToHDC(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, int jarg4, int jarg5, int jarg6)