Class Image
Represents an Image which can be drawn using a Graphics surface.
Implements
Inherited Members
Namespace: GameOverlay.Drawing
Assembly: GameOverlay.dll
Syntax
public class Image : IDisposable
Constructors
| Improve this Doc View SourceImage(Graphics, Byte[])
Initializes a new Image for the given device by using a byte[].
Declaration
public Image(Graphics device, byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
Graphics | device | The Graphics device. |
Byte[] | bytes | A byte[] containing image data. |
Image(Graphics, String)
Initializes a new Image for the given device by using a file on disk.
Declaration
public Image(Graphics device, string path)
Parameters
Type | Name | Description |
---|---|---|
Graphics | device | The Graphics device. |
String | path | The path to an image file on disk. |
Image(RenderTarget, Byte[])
Initializes a new Image for the given device by using a byte[].
Declaration
public Image(RenderTarget device, byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Direct2D1.RenderTarget | device | The Graphics device. |
Byte[] | bytes | A byte[] containing image data. |
Image(RenderTarget, String)
Initializes a new Image for the given device by using a file on disk.
Declaration
public Image(RenderTarget device, string path)
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Direct2D1.RenderTarget | device | The Graphics device. |
String | path | The path to an image file on disk. |
Fields
| Improve this Doc View SourceBitmap
The SharpDX Bitmap
Declaration
public Bitmap Bitmap
Field Value
Type | Description |
---|---|
SharpDX.Direct2D1.Bitmap |
Properties
| Improve this Doc View SourceHeight
Gets the height of this Image
Declaration
public float Height { get; }
Property Value
Type | Description |
---|---|
Single |
Width
Gets the width of this Image
Declaration
public float Width { get; }
Property Value
Type | Description |
---|---|
Single |
Methods
| Improve this Doc View SourceDispose()
Releases all resources used by this Image.
Declaration
public void Dispose()
Dispose(Boolean)
Releases all resources used by this Image.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | A Boolean value indicating whether this is called from the destructor. |
Equals(Image)
Returns a value indicating whether two specified instances of Image represent the same value.
Declaration
public bool Equals(Image value)
Parameters
Type | Name | Description |
---|---|---|
Image | value | An object to compare to this instance. |
Returns
Type | Description |
---|---|
Boolean | true if |
Equals(Image, Image)
Returns a value indicating whether two specified instances of Image represent the same value.
Declaration
public static bool Equals(Image left, Image right)
Parameters
Type | Name | Description |
---|---|---|
Image | left | The first object to compare. |
Image | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |
Equals(Object)
Returns a value indicating whether this instance and a specified Object represent the same type and value.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
Boolean | true if |
Overrides
| Improve this Doc View SourceFinalize()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
Declaration
protected void Finalize()
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A 32-bit signed integer hash code. |
Overrides
| Improve this Doc View SourceToString()
Converts this Image instance to a human-readable string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string representation of this Image. |
Overrides
Operators
| Improve this Doc View SourceImplicit(Image to Bitmap)
Converts an Image to a SharpDX Bitmap.
Declaration
public static implicit operator Bitmap(Image image)
Parameters
Type | Name | Description |
---|---|---|
Image | image | The Image object. |
Returns
Type | Description |
---|---|
SharpDX.Direct2D1.Bitmap |