Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

217 lines
10 KiB
C#

using System;
using System.ComponentModel;
using System.Drawing.Drawing2D;
using Cpp2IlInjected;
namespace System.Drawing
{
/// <summary>Encapsulates a GDI+ drawing surface. This class cannot be inherited.</summary>
// Token: 0x02000021 RID: 33
[Token(Token = "0x2000021")]
public sealed class Graphics : MarshalByRefObject, IDisposable
{
// Token: 0x060000A2 RID: 162 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000A2")]
[Address(RVA = "0x10F4E00", Offset = "0x10F3E00", VA = "0x1810F4E00")]
internal Graphics(IntPtr nativeGraphics)
{
}
/// <summary>Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.</summary>
// Token: 0x060000A3 RID: 163 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000A3")]
[Address(RVA = "0x10F45C0", Offset = "0x10F35C0", VA = "0x1810F45C0", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x1700000C RID: 12
// (get) Token: 0x060000A4 RID: 164 RVA: 0x000023A0 File Offset: 0x000005A0
[Token(Token = "0x1700000C")]
internal IntPtr NativeObject
{
[Token(Token = "0x60000A4")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return 0;
}
}
/// <summary>Performs a bit-block transfer of the color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the <see cref="T:System.Drawing.Graphics" />.</summary>
/// <param name="sourceX">The x-coordinate of the point at the upper-left corner of the source rectangle.</param>
/// <param name="sourceY">The y-coordinate of the point at the upper-left corner of the source rectangle</param>
/// <param name="destinationX">The x-coordinate of the point at the upper-left corner of the destination rectangle.</param>
/// <param name="destinationY">The y-coordinate of the point at the upper-left corner of the destination rectangle.</param>
/// <param name="blockRegionSize">The size of the area to be transferred.</param>
/// <param name="copyPixelOperation">One of the <see cref="T:System.Drawing.CopyPixelOperation" /> values.</param>
/// <exception cref="T:System.ComponentModel.InvalidEnumArgumentException">
/// <paramref name="copyPixelOperation" /> is not a member of <see cref="T:System.Drawing.CopyPixelOperation" />.</exception>
/// <exception cref="T:System.ComponentModel.Win32Exception">The operation failed.</exception>
// Token: 0x060000A5 RID: 165 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000A5")]
[Address(RVA = "0x10F3E10", Offset = "0x10F2E10", VA = "0x1810F3E10")]
[MonoLimitation("Works on Win32 and (for CopyPixelOperation.SourceCopy only) on X11 but not on Cocoa and Quartz")]
public void CopyFromScreen(int sourceX, int sourceY, int destinationX, int destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation)
{
}
// Token: 0x060000A6 RID: 166 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000A6")]
[Address(RVA = "0x10F2FA0", Offset = "0x10F1FA0", VA = "0x1810F2FA0")]
private void CopyFromScreenWin32(int sourceX, int sourceY, int destinationX, int destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation)
{
}
// Token: 0x060000A7 RID: 167 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000A7")]
[Address(RVA = "0x10F2F50", Offset = "0x10F1F50", VA = "0x1810F2F50")]
private void CopyFromScreenMac(int sourceX, int sourceY, int destinationX, int destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation)
{
}
// Token: 0x060000A8 RID: 168 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000A8")]
[Address(RVA = "0x10F3350", Offset = "0x10F2350", VA = "0x1810F3350")]
private void CopyFromScreenX11(int sourceX, int sourceY, int destinationX, int destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation)
{
}
/// <summary>Releases all resources used by this <see cref="T:System.Drawing.Graphics" />.</summary>
// Token: 0x060000A9 RID: 169 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000A9")]
[Address(RVA = "0x10F40D0", Offset = "0x10F30D0", VA = "0x1810F40D0", Slot = "6")]
public void Dispose()
{
}
/// <summary>Draws the specified image, using its original physical size, at the location specified by a coordinate pair.</summary>
/// <param name="image">
/// <see cref="T:System.Drawing.Image" /> to draw.</param>
/// <param name="x">The x-coordinate of the upper-left corner of the drawn image.</param>
/// <param name="y">The y-coordinate of the upper-left corner of the drawn image.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="image" /> is <see langword="null" />.</exception>
// Token: 0x060000AA RID: 170 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000AA")]
[Address(RVA = "0x10F4490", Offset = "0x10F3490", VA = "0x1810F4490")]
public void DrawImage(Image image, int x, int y)
{
}
/// <summary>Draws the specified <see cref="T:System.Drawing.Image" /> at the specified location and with the specified size.</summary>
/// <param name="image">
/// <see cref="T:System.Drawing.Image" /> to draw.</param>
/// <param name="x">The x-coordinate of the upper-left corner of the drawn image.</param>
/// <param name="y">The y-coordinate of the upper-left corner of the drawn image.</param>
/// <param name="width">Width of the drawn image.</param>
/// <param name="height">Height of the drawn image.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="image" /> is <see langword="null" />.</exception>
// Token: 0x060000AB RID: 171 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000AB")]
[Address(RVA = "0x10F4340", Offset = "0x10F3340", VA = "0x1810F4340")]
public void DrawImage(Image image, int x, int y, int width, int height)
{
}
/// <summary>Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.</summary>
// Token: 0x060000AC RID: 172 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000AC")]
[Address(RVA = "0x10F4740", Offset = "0x10F3740", VA = "0x1810F4740")]
public void Flush()
{
}
/// <summary>Forces execution of all pending graphics operations with the method waiting or not waiting, as specified, to return before the operations finish.</summary>
/// <param name="intention">Member of the <see cref="T:System.Drawing.Drawing2D.FlushIntention" /> enumeration that specifies whether the method returns immediately or waits for any existing operations to finish.</param>
// Token: 0x060000AD RID: 173 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000AD")]
[Address(RVA = "0x10F4630", Offset = "0x10F3630", VA = "0x1810F4630")]
public void Flush(FlushIntention intention)
{
}
/// <summary>Creates a new <see cref="T:System.Drawing.Graphics" /> from the specified <see cref="T:System.Drawing.Image" />.</summary>
/// <param name="image">
/// <see cref="T:System.Drawing.Image" /> from which to create the new <see cref="T:System.Drawing.Graphics" />.</param>
/// <returns>This method returns a new <see cref="T:System.Drawing.Graphics" /> for the specified <see cref="T:System.Drawing.Image" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="image" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Exception">
/// <paramref name="image" /> has an indexed pixel format or its format is undefined.</exception>
// Token: 0x060000AE RID: 174 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60000AE")]
[Address(RVA = "0x10F4840", Offset = "0x10F3840", VA = "0x1810F4840")]
public static Graphics FromImage(Image image)
{
return null;
}
/// <summary>Gets the handle to the device context associated with this <see cref="T:System.Drawing.Graphics" />.</summary>
/// <returns>Handle to the device context associated with this <see cref="T:System.Drawing.Graphics" />.</returns>
// Token: 0x060000AF RID: 175 RVA: 0x000023B8 File Offset: 0x000005B8
[Token(Token = "0x60000AF")]
[Address(RVA = "0x10F4C00", Offset = "0x10F3C00", VA = "0x1810F4C00", Slot = "7")]
public IntPtr GetHdc()
{
return 0;
}
/// <summary>Releases a device context handle obtained by a previous call to the <see cref="M:System.Drawing.Graphics.GetHdc" /> method of this <see cref="T:System.Drawing.Graphics" />.</summary>
/// <param name="hdc">Handle to a device context obtained by a previous call to the <see cref="M:System.Drawing.Graphics.GetHdc" /> method of this <see cref="T:System.Drawing.Graphics" />.</param>
// Token: 0x060000B0 RID: 176 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000B0")]
[Address(RVA = "0x10F4CD0", Offset = "0x10F3CD0", VA = "0x1810F4CD0")]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public void ReleaseHdc(IntPtr hdc)
{
}
/// <summary>Releases a handle to a device context.</summary>
/// <param name="hdc">Handle to a device context.</param>
// Token: 0x060000B1 RID: 177 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000B1")]
[Address(RVA = "0x10F4CD0", Offset = "0x10F3CD0", VA = "0x1810F4CD0")]
[MonoLimitation("Can only be used when hdc was provided by Graphics.GetHdc() method")]
[EditorBrowsable(EditorBrowsableState.Never)]
public void ReleaseHdcInternal(IntPtr hdc)
{
}
/// <summary>Gets or sets the interpolation mode associated with this <see cref="T:System.Drawing.Graphics" />.</summary>
/// <returns>One of the <see cref="T:System.Drawing.Drawing2D.InterpolationMode" /> values.</returns>
// Token: 0x1700000D RID: 13
// (set) Token: 0x060000B2 RID: 178 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x1700000D")]
public InterpolationMode InterpolationMode
{
[Token(Token = "0x60000B2")]
[Address(RVA = "0x10F4E50", Offset = "0x10F3E50", VA = "0x1810F4E50")]
set
{
}
}
// Token: 0x0400003B RID: 59
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400003B")]
internal IntPtr nativeObject;
// Token: 0x0400003C RID: 60
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400003C")]
internal IMacContext maccontext;
// Token: 0x0400003D RID: 61
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400003D")]
private bool disposed;
// Token: 0x0400003E RID: 62
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400003E")]
private IntPtr deviceContextHdc;
}
}