225 lines
9.2 KiB
C#
225 lines
9.2 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>An abstract base class that provides functionality for the <see cref="T:System.Drawing.Bitmap" /> and <see cref="T:System.Drawing.Imaging.Metafile" /> descended classes.</summary>
|
|
// Token: 0x02000022 RID: 34
|
|
[Token(Token = "0x2000022")]
|
|
[Editor]
|
|
[TypeConverter]
|
|
[ComVisible(true)]
|
|
[Editor("System.Drawing.Design.ImageEditor, System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
|
|
[ImmutableObject(true)]
|
|
[TypeConverter(typeof(ImageConverter))]
|
|
[Serializable]
|
|
public abstract class Image : MarshalByRefObject, IDisposable, ICloneable, ISerializable
|
|
{
|
|
// Token: 0x060000B3 RID: 179 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60000B3")]
|
|
[Address(RVA = "0x67D310", Offset = "0x67C110", VA = "0x18067D310")]
|
|
internal Image()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060000B4 RID: 180 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60000B4")]
|
|
[Address(RVA = "0x67D580", Offset = "0x67C380", VA = "0x18067D580")]
|
|
internal Image(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed to serialize the target object.</summary>
|
|
/// <param name="si">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object to populate with data.</param>
|
|
/// <param name="context">The destination (see <see cref="T:System.Runtime.Serialization.StreamingContext" />) for this serialization.</param>
|
|
// Token: 0x060000B5 RID: 181 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60000B5")]
|
|
[Address(RVA = "0x688CC0", Offset = "0x687AC0", VA = "0x180688CC0", Slot = "8")]
|
|
void ISerializable.GetObjectData(SerializationInfo si, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060000B6 RID: 182 RVA: 0x000023D0 File Offset: 0x000005D0
|
|
[Token(Token = "0x60000B6")]
|
|
[Address(RVA = "0x688180", Offset = "0x686F80", VA = "0x180688180")]
|
|
internal static IntPtr InitFromStream(Stream stream)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x060000B7 RID: 183 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60000B7")]
|
|
[Address(RVA = "0x688E80", Offset = "0x687C80", VA = "0x180688E80")]
|
|
internal ImageCodecInfo findEncoderForFormat(ImageFormat format)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Saves this image to the specified stream in the specified format.</summary>
|
|
/// <param name="stream">The <see cref="T:System.IO.Stream" /> where the image will be saved.</param>
|
|
/// <param name="format">An <see cref="T:System.Drawing.Imaging.ImageFormat" /> that specifies the format of the saved image.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="stream" /> or <paramref name="format" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Runtime.InteropServices.ExternalException">The image was saved with the wrong image format</exception>
|
|
// Token: 0x060000B8 RID: 184 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60000B8")]
|
|
[Address(RVA = "0x688A70", Offset = "0x687870", VA = "0x180688A70")]
|
|
public void Save(Stream stream, ImageFormat format)
|
|
{
|
|
}
|
|
|
|
/// <summary>Saves this image to the specified stream, with the specified encoder and image encoder parameters.</summary>
|
|
/// <param name="stream">The <see cref="T:System.IO.Stream" /> where the image will be saved.</param>
|
|
/// <param name="encoder">The <see cref="T:System.Drawing.Imaging.ImageCodecInfo" /> for this <see cref="T:System.Drawing.Image" />.</param>
|
|
/// <param name="encoderParams">An <see cref="T:System.Drawing.Imaging.EncoderParameters" /> that specifies parameters used by the image encoder.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="stream" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Runtime.InteropServices.ExternalException">The image was saved with the wrong image format.</exception>
|
|
// Token: 0x060000B9 RID: 185 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60000B9")]
|
|
[Address(RVA = "0x688620", Offset = "0x687420", VA = "0x180688620")]
|
|
public void Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the height, in pixels, of this <see cref="T:System.Drawing.Image" />.</summary>
|
|
/// <returns>The height, in pixels, of this <see cref="T:System.Drawing.Image" />.</returns>
|
|
// Token: 0x1700000E RID: 14
|
|
// (get) Token: 0x060000BA RID: 186 RVA: 0x000023E8 File Offset: 0x000005E8
|
|
[Token(Token = "0x1700000E")]
|
|
[DefaultValue(false)]
|
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
|
[Browsable(false)]
|
|
public int Height
|
|
{
|
|
[Token(Token = "0x60000BA")]
|
|
[Address(RVA = "0x689000", Offset = "0x687E00", VA = "0x180689000")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the pixel format for this <see cref="T:System.Drawing.Image" />.</summary>
|
|
/// <returns>A <see cref="T:System.Drawing.Imaging.PixelFormat" /> that represents the pixel format for this <see cref="T:System.Drawing.Image" />.</returns>
|
|
// Token: 0x1700000F RID: 15
|
|
// (get) Token: 0x060000BB RID: 187 RVA: 0x00002400 File Offset: 0x00000600
|
|
[Token(Token = "0x1700000F")]
|
|
public PixelFormat PixelFormat
|
|
{
|
|
[Token(Token = "0x60000BB")]
|
|
[Address(RVA = "0x6890D0", Offset = "0x687ED0", VA = "0x1806890D0")]
|
|
get
|
|
{
|
|
return PixelFormat.Undefined;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the file format of this <see cref="T:System.Drawing.Image" />.</summary>
|
|
/// <returns>The <see cref="T:System.Drawing.Imaging.ImageFormat" /> that represents the file format of this <see cref="T:System.Drawing.Image" />.</returns>
|
|
// Token: 0x17000010 RID: 16
|
|
// (get) Token: 0x060000BC RID: 188 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000010")]
|
|
public ImageFormat RawFormat
|
|
{
|
|
[Token(Token = "0x60000BC")]
|
|
[Address(RVA = "0x6891A0", Offset = "0x687FA0", VA = "0x1806891A0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the width, in pixels, of this <see cref="T:System.Drawing.Image" />.</summary>
|
|
/// <returns>The width, in pixels, of this <see cref="T:System.Drawing.Image" />.</returns>
|
|
// Token: 0x17000011 RID: 17
|
|
// (get) Token: 0x060000BD RID: 189 RVA: 0x00002418 File Offset: 0x00000618
|
|
[Token(Token = "0x17000011")]
|
|
[Browsable(false)]
|
|
[DefaultValue(false)]
|
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
|
public int Width
|
|
{
|
|
[Token(Token = "0x60000BD")]
|
|
[Address(RVA = "0x6892A0", Offset = "0x6880A0", VA = "0x1806892A0")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000012 RID: 18
|
|
// (get) Token: 0x060000BE RID: 190 RVA: 0x00002430 File Offset: 0x00000630
|
|
[Token(Token = "0x17000012")]
|
|
internal IntPtr NativeObject
|
|
{
|
|
[Token(Token = "0x60000BE")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Releases all resources used by this <see cref="T:System.Drawing.Image" />.</summary>
|
|
// Token: 0x060000BF RID: 191 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60000BF")]
|
|
[Address(RVA = "0x688090", Offset = "0x686E90", VA = "0x180688090", Slot = "6")]
|
|
public void Dispose()
|
|
{
|
|
}
|
|
|
|
/// <summary>Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.</summary>
|
|
// Token: 0x060000C0 RID: 192 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60000C0")]
|
|
[Address(RVA = "0x688100", Offset = "0x686F00", VA = "0x180688100", Slot = "1")]
|
|
protected override void Finalize()
|
|
{
|
|
}
|
|
|
|
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Drawing.Image" /> and optionally releases the managed resources.</summary>
|
|
/// <param name="disposing">
|
|
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
|
|
// Token: 0x060000C1 RID: 193 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x60000C1")]
|
|
[Address(RVA = "0x687F30", Offset = "0x686D30", VA = "0x180687F30", Slot = "9")]
|
|
protected virtual void Dispose(bool disposing)
|
|
{
|
|
}
|
|
|
|
/// <summary>Creates an exact copy of this <see cref="T:System.Drawing.Image" />.</summary>
|
|
/// <returns>The <see cref="T:System.Drawing.Image" /> this method creates, cast as an object.</returns>
|
|
// Token: 0x060000C2 RID: 194 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60000C2")]
|
|
[Address(RVA = "0x687DB0", Offset = "0x686BB0", VA = "0x180687DB0", Slot = "7")]
|
|
public object Clone()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060000C3 RID: 195 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60000C3")]
|
|
[Address(RVA = "0x687B50", Offset = "0x686950", VA = "0x180687B50")]
|
|
private object CloneFromStream()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0400003F RID: 63
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400003F")]
|
|
internal IntPtr nativeObject;
|
|
|
|
// Token: 0x04000040 RID: 64
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000040")]
|
|
internal Stream stream;
|
|
}
|
|
}
|