Represents an image loaded from disk or created in memory
| C# |
public class Image : IDisposable
| All Members | Constructors | Methods | |||
| Icon | Member | Description |
|---|---|---|
| Image(Int32, Int32) |
Creates a new image of a given side with root's background color (or black if none exists)
| |
| Image(String) |
Loads a .bmp image from disk
| |
| Image(Console) |
Create image from current console state
| |
| AverageColorOfRegion(Single, Single, Single, Single) |
Use mipmaps to get average color of a region
| |
| Blit(Console, Single, Single, Background, Double, Double, Double) |
Blit entire image onto console
| |
| BlitRect(Console, Int32, Int32, Int32, Int32, Background) |
Blit part of a image to the console
| |
| Clear(Color) |
Clear an image to a specific background color
| |
| Dispose()()() |
Destory unmanaged image resource
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetPixel(Int32, Int32) |
Get color of specific pixel in image
| |
| GetPixelTransparency(Int32, Int32) |
Is current pixel "transparent", key color
| |
| GetSize(Int32%, Int32%) |
Get the current image's size
| |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| PutPixel(Int32, Int32, Color) |
Change color of given pixel
| |
| SaveImageToDisc(String) |
Write image to disk as .bmp file
| |
| SetKeyColor(Color) |
Set "Key Color", the transparent color of an image
| |
| ToString()()() | (Inherited from Object.) |
| Object | |
| Image | |