Files
Aug2021-Cpp2IL-Dump/System.Drawing/System/Drawing/Bitmap.cs
T
2026-04-10 22:50:51 +02:00

85 lines
4.1 KiB
C#

using System;
using System.ComponentModel;
using System.Drawing.Design;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Drawing
{
/// <summary>Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes. A <see cref="T:System.Drawing.Bitmap" /> is an object used to work with images defined by pixel data.</summary>
// Token: 0x02000008 RID: 8
[Token(Token = "0x2000008")]
[Editor]
[Editor("System.Drawing.Design.BitmapEditor, System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
[ComVisible(true)]
[Serializable]
public sealed class Bitmap : Image
{
// Token: 0x0600000C RID: 12 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600000C")]
[Address(RVA = "0x67D310", Offset = "0x67C110", VA = "0x18067D310")]
private Bitmap()
{
}
// Token: 0x0600000D RID: 13 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600000D")]
[Address(RVA = "0x67D480", Offset = "0x67C280", VA = "0x18067D480")]
internal Bitmap(IntPtr ptr)
{
}
// Token: 0x0600000E RID: 14 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600000E")]
[Address(RVA = "0x67D4D0", Offset = "0x67C2D0", VA = "0x18067D4D0")]
internal Bitmap(IntPtr ptr, Stream stream)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Drawing.Bitmap" /> class with the specified size.</summary>
/// <param name="width">The width, in pixels, of the new <see cref="T:System.Drawing.Bitmap" />.</param>
/// <param name="height">The height, in pixels, of the new <see cref="T:System.Drawing.Bitmap" />.</param>
/// <exception cref="T:System.Exception">The operation failed.</exception>
// Token: 0x0600000F RID: 15 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600000F")]
[Address(RVA = "0x67D350", Offset = "0x67C150", VA = "0x18067D350")]
public Bitmap(int width, int height)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Drawing.Bitmap" /> class with the specified size and format.</summary>
/// <param name="width">The width, in pixels, of the new <see cref="T:System.Drawing.Bitmap" />.</param>
/// <param name="height">The height, in pixels, of the new <see cref="T:System.Drawing.Bitmap" />.</param>
/// <param name="format">The pixel format for the new <see cref="T:System.Drawing.Bitmap" />. This must specify a value that begins with Format.</param>
/// <exception cref="T:System.ArgumentException">A <see cref="T:System.Drawing.Imaging.PixelFormat" /> value is specified whose name does not start with Format. For example, specifying <see cref="F:System.Drawing.Imaging.PixelFormat.Gdi" /> will cause an <see cref="T:System.ArgumentException" />, but <see cref="F:System.Drawing.Imaging.PixelFormat.Format48bppRgb" /> will not.</exception>
// Token: 0x06000010 RID: 16 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000010")]
[Address(RVA = "0x67D1D0", Offset = "0x67BFD0", VA = "0x18067D1D0")]
public Bitmap(int width, int height, PixelFormat format)
{
}
// Token: 0x06000011 RID: 17 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000011")]
[Address(RVA = "0x67D580", Offset = "0x67C380", VA = "0x18067D580")]
private Bitmap(SerializationInfo info, StreamingContext context)
{
}
/// <summary>Sets the color of the specified pixel in this <see cref="T:System.Drawing.Bitmap" />.</summary>
/// <param name="x">The x-coordinate of the pixel to set.</param>
/// <param name="y">The y-coordinate of the pixel to set.</param>
/// <param name="color">A <see cref="T:System.Drawing.Color" /> structure that represents the color to assign to the specified pixel.</param>
/// <exception cref="T:System.Exception">The operation failed.</exception>
// Token: 0x06000012 RID: 18 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000012")]
[Address(RVA = "0x67D050", Offset = "0x67BE50", VA = "0x18067D050")]
public void SetPixel(int x, int y, Color color)
{
}
}
}