libtcod-net
Image Class
NamespaceslibtcodWrapperImage
Represents an image loaded from disk or created in memory
Declaration Syntax
C#
public class Image : IDisposable
Members
All MembersConstructorsMethods



IconMemberDescription
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)
Determines whether the specified Object is equal to the current 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()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
Image

Assembly: libtcodWrapper (Module: libtcodWrapper) Version: 0.2.0.0 (0.2.0.0)