Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
PDFContentStream.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
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public PDFContentStream(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.PDFContentStream_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(PDFContentStream obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public override bool isKindOf(PDFTypeId objType) {
43 bool ret = GlobalsPINVOKE.PDFContentStream_isKindOf(swigCPtr, (int)objType);
45 return ret;
46 }
47
53
55 MemoryManager mMan = MemoryManager.GetMemoryManager();
56 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #25
58
59 PDFContentStream ret = null;
60 if (null != mTrans)
61 {
62 mTrans.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<PDFContentStream>(typeof(PDFContentStream), ptr, true));
63 ret = Teigha.Core.Helpers.odCreateObjectInternal<PDFContentStream>(typeof(PDFContentStream), ptr, false);
64 }
65 else
66 {
67 ret = Teigha.Core.Helpers.odCreateObjectInternal<PDFContentStream>(typeof(PDFContentStream), ptr, true);
68 }
69
71 return ret;
72}
73
75 MemoryManager mMan = MemoryManager.GetMemoryManager();
76 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #25
78
79 PDFContentStream ret = null;
80 if (null != mTrans)
81 {
82 mTrans.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<PDFContentStream>(typeof(PDFContentStream), ptr, true));
83 ret = Teigha.Core.Helpers.odCreateObjectInternal<PDFContentStream>(typeof(PDFContentStream), ptr, false);
84 }
85 else
86 {
87 ret = Teigha.Core.Helpers.odCreateObjectInternal<PDFContentStream>(typeof(PDFContentStream), ptr, true);
88 }
89
91 return ret;
92}
93
94 public virtual void setTraits(double lw, UInt32 rgb_s, UInt32 rgb_ns, UInt16 ci_s, UInt16 ci_ns, PDFLineCap capStyle, PDFLineJoin joinStyle) {
95 GlobalsPINVOKE.PDFContentStream_setTraits(swigCPtr, lw, rgb_s /*SIMPLETYPE*/, rgb_ns /*SIMPLETYPE*/, ci_s /*SIMPLETYPE*/, ci_ns /*SIMPLETYPE*/, (int)capStyle, (int)joinStyle);
97 }
98
99 public virtual void getTraits(out double lw, out UInt32 rgb_s, out UInt32 rgb_ns, out UInt16 ci_s, out UInt16 ci_ns, out PDFLineCap capStyle, out PDFLineJoin joinStyle) {
100 GlobalsPINVOKE.PDFContentStream_getTraits(swigCPtr, out lw, out rgb_s, out rgb_ns, out ci_s, out ci_ns, out capStyle, out joinStyle);
102 }
103
108
113
118
123
124 public virtual void cm(double a, double b, double c, double d, double e, double f) {
125 GlobalsPINVOKE.PDFContentStream_cm(swigCPtr, a, b, c, d, e, f);
127 }
128
129 public virtual void w(double lw) {
132 }
133
134 public virtual void J(PDFLineCap linecap) {
135 GlobalsPINVOKE.PDFContentStream_J(swigCPtr, (int)linecap);
137 }
138
139 public virtual void j(PDFLineJoin linejoin) {
140 GlobalsPINVOKE.PDFContentStream_j(swigCPtr, (int)linejoin);
142 }
143
144 public virtual void d(PDFArray dashArray, UInt32 phase) {
145 GlobalsPINVOKE.PDFContentStream_d(swigCPtr, PDFArray.getCPtr(dashArray), phase /*SIMPLETYPE*/);
147 }
148
149 public virtual void cs(PDFName pColorSpace) {
150 GlobalsPINVOKE.PDFContentStream_cs(swigCPtr, PDFName.getCPtr(pColorSpace));
152 }
153
154 public virtual void CS(PDFName pColorSpace) {
155 GlobalsPINVOKE.PDFContentStream_CS(swigCPtr, PDFName.getCPtr(pColorSpace));
157 }
158
159 public virtual void sc(byte indx) {
160 GlobalsPINVOKE.PDFContentStream_sc(swigCPtr, indx /*SIMPLETYPE*/);
162 }
163
164 public virtual void SC(byte indx) {
165 GlobalsPINVOKE.PDFContentStream_SC(swigCPtr, indx /*SIMPLETYPE*/);
167 }
168
169 public virtual void RG(double r, double g, double b) {
172 }
173
174 public virtual void rg(double r, double g, double b) {
177 }
178
179 public virtual void RG(UInt32 rgb) {
180 GlobalsPINVOKE.PDFContentStream_RG__SWIG_1(swigCPtr, rgb /*SIMPLETYPE*/);
182 }
183
184 public virtual void rg(UInt32 rgb) {
185 GlobalsPINVOKE.PDFContentStream_rg__SWIG_1(swigCPtr, rgb /*SIMPLETYPE*/);
187 }
188
189 public virtual void g(double g) {
192 }
193
194 public virtual void G(double g) {
197 }
198
199 public virtual void m(double x, double y, bool bToInt) {
200 GlobalsPINVOKE.PDFContentStream_m__SWIG_0(swigCPtr, x, y, bToInt);
202 }
203
204 public virtual void m(double x, double y) {
207 }
208
209 public virtual void l(double x, double y, bool bToInt) {
210 GlobalsPINVOKE.PDFContentStream_l__SWIG_0(swigCPtr, x, y, bToInt);
212 }
213
214 public virtual void l(double x, double y) {
217 }
218
219 public virtual void c(double x1, double y1, double x2, double y2, double x3, double y3, bool bToInt) {
220 GlobalsPINVOKE.PDFContentStream_c__SWIG_0(swigCPtr, x1, y1, x2, y2, x3, y3, bToInt);
222 }
223
224 public virtual void c(double x1, double y1, double x2, double y2, double x3, double y3) {
225 GlobalsPINVOKE.PDFContentStream_c__SWIG_1(swigCPtr, x1, y1, x2, y2, x3, y3);
227 }
228
229 public virtual void v(double x2, double y2, double x3, double y3) {
230 GlobalsPINVOKE.PDFContentStream_v(swigCPtr, x2, y2, x3, y3);
232 }
233
234 public virtual void y(double x2, double y2, double x3, double y3) {
235 GlobalsPINVOKE.PDFContentStream_y(swigCPtr, x2, y2, x3, y3);
237 }
238
239 public virtual void re(double x, double y, double width, double height) {
240 GlobalsPINVOKE.PDFContentStream_re(swigCPtr, x, y, width, height);
242 }
243
248
253
258
263
268
273
278
283
288
293
298
303
304 public virtual void Tc(double charSpace) {
305 GlobalsPINVOKE.PDFContentStream_Tc(swigCPtr, charSpace);
307 }
308
309 public virtual void Tw(double wordSpace) {
310 GlobalsPINVOKE.PDFContentStream_Tw(swigCPtr, wordSpace);
312 }
313
314 public virtual void Tz(double scale) {
315 GlobalsPINVOKE.PDFContentStream_Tz(swigCPtr, scale);
317 }
318
319 public virtual void TL(double leading) {
320 GlobalsPINVOKE.PDFContentStream_TL(swigCPtr, leading);
322 }
323
324 public virtual void Tf(PDFName font, double size) {
325 GlobalsPINVOKE.PDFContentStream_Tf(swigCPtr, PDFName.getCPtr(font), size);
327 }
328
329 public virtual void Tr(UInt32 render) {
330 GlobalsPINVOKE.PDFContentStream_Tr(swigCPtr, render /*SIMPLETYPE*/);
332 }
333
334 public virtual void Ts(double rise) {
335 GlobalsPINVOKE.PDFContentStream_Ts(swigCPtr, rise);
337 }
338
343
348
349 public virtual void Td(double tx, double ty) {
350 GlobalsPINVOKE.PDFContentStream_Td(swigCPtr, tx, ty);
352 }
353
354 public virtual void TD(double tx, double ty) {
355 GlobalsPINVOKE.PDFContentStream_TD(swigCPtr, tx, ty);
357 }
358
359 public virtual void Tm(double a, double b, double c, double d, double e, double f) {
360 GlobalsPINVOKE.PDFContentStream_Tm(swigCPtr, a, b, c, d, e, f);
362 }
363
368
373
378
379 public virtual void BDC(PDFName pTag, PDFObject pProperties) {
382 }
383
388
393
398
399}
400
401}
static global::System.Exception Retrieve()
static void PDFContentStream_b(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr PDFContentStream_createObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_gs(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void PDFContentStream_l__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, bool jarg4)
static void PDFContentStream_m__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static void PDFContentStream_Do(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void PDFContentStream_Tf(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, double jarg3)
static void PDFContentStream_BDC(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, HandleRef jarg3)
static void PDFContentStream_c__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7)
static void PDFContentStream_Q(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_sh(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void PDFContentStream_G(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void PDFContentStream_Tc(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void PDFContentStream_f_odd(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_B(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_TJ(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void PDFContentStream_CS(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void PDFContentStream_RG__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void PDFContentStream_Ts(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void PDFContentStream_Tm(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7)
static void PDFContentStream_rg__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void PDFContentStream_B_odd(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_b_odd(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_Tz(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void PDFContentStream_cm(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7)
static void PDFContentStream_J(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void PDFContentStream_l__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static void PDFContentStream_s(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_v(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5)
static void PDFContentStream_T_star(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_n(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_rg__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4)
static void PDFContentStream_re(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5)
static void PDFContentStream_TL(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void PDFContentStream_Tr(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void PDFContentStream_SC(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2)
static void PDFContentStream_getTraits(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out UInt32 jarg3, out UInt32 jarg4, out UInt16 jarg5, out UInt16 jarg6, out PDFLineCap jarg7, out PDFLineJoin jarg8)
static void PDFContentStream_m__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, bool jarg4)
static void PDFContentStream_BT(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_y(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5)
static void PDFContentStream_f(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_q(global::System.Runtime.InteropServices.HandleRef jarg1)
static int PDFContentStream_type(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_setTraits(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, UInt32 jarg3, UInt32 jarg4, UInt16 jarg5, UInt16 jarg6, int jarg7, int jarg8)
static void PDFContentStream_W_odd(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_Tw(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool PDFContentStream_isKindOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void PDFContentStream_Tj(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void PDFContentStream_j(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void PDFContentStream_Td(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static void PDFContentStream_RG__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4)
static void PDFContentStream_S(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_W(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_h(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_ET(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_PDFContentStream(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_w(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void PDFContentStream_EMC(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFContentStream_TD(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static void PDFContentStream_c__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7, bool jarg8)
static void PDFContentStream_d(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, UInt32 jarg3)
static void PDFContentStream_g(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void PDFContentStream_sc(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2)
static void PDFContentStream_BMC(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void PDFContentStream_cs(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static IntPtr PDFContentStream_createObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static HandleRef getCPtr(PDFArray obj)
Definition PDFArray.cs:25
virtual void SC(byte indx)
override bool isKindOf(PDFTypeId objType)
virtual void d(PDFArray dashArray, UInt32 phase)
virtual void sh(PDFName pName)
virtual void Tz(double scale)
virtual void w(double lw)
virtual void Tw(double wordSpace)
virtual void RG(double r, double g, double b)
static PDFContentStream createObject(PDFDocument pDoc, bool isIndirect)
virtual void Tm(double a, double b, double c, double d, double e, double f)
virtual void BMC(PDFName pTag)
virtual void setTraits(double lw, UInt32 rgb_s, UInt32 rgb_ns, UInt16 ci_s, UInt16 ci_ns, PDFLineCap capStyle, PDFLineJoin joinStyle)
virtual void l(double x, double y, bool bToInt)
virtual void rg(double r, double g, double b)
virtual void gs(PDFName pGS)
virtual void c(double x1, double y1, double x2, double y2, double x3, double y3, bool bToInt)
virtual void Tj(PDFTextString pStr)
virtual void j(PDFLineJoin linejoin)
virtual void l(double x, double y)
virtual void c(double x1, double y1, double x2, double y2, double x3, double y3)
virtual void cs(PDFName pColorSpace)
PDFContentStream(IntPtr cPtr, bool cMemoryOwn)
virtual void RG(UInt32 rgb)
virtual void Td(double tx, double ty)
virtual void Tr(UInt32 render)
virtual void TJ(PDFArray pStr)
virtual void cm(double a, double b, double c, double d, double e, double f)
virtual void v(double x2, double y2, double x3, double y3)
static HandleRef getCPtr(PDFContentStream obj)
virtual void BDC(PDFName pTag, PDFObject pProperties)
virtual void getTraits(out double lw, out UInt32 rgb_s, out UInt32 rgb_ns, out UInt16 ci_s, out UInt16 ci_ns, out PDFLineCap capStyle, out PDFLineJoin joinStyle)
virtual void y(double x2, double y2, double x3, double y3)
virtual void Ts(double rise)
virtual void TL(double leading)
virtual void m(double x, double y, bool bToInt)
virtual void CS(PDFName pColorSpace)
virtual void rg(UInt32 rgb)
virtual void Tc(double charSpace)
static PDFContentStream createObject(PDFDocument pDoc)
virtual void m(double x, double y)
virtual void Do(PDFName pName)
virtual void sc(byte indx)
virtual void Tf(PDFName font, double size)
virtual void J(PDFLineCap linecap)
virtual void TD(double tx, double ty)
virtual void re(double x, double y, double width, double height)
override void Dispose(bool disposing)
static HandleRef getCPtr(PDFDocument obj)
static HandleRef getCPtr(PDFName obj)
Definition PDFName.cs:25
static HandleRef getCPtr(PDFObject obj)
Definition PDFObject.cs:25
virtual bool isIndirect()
Definition PDFObject.cs:77
static HandleRef getCPtr(PDFTextString obj)