Click or drag to resize

AnnotationImage Class

This class represents an image object used by AnnotationBrush and EmbeddedImageData classes.
Inheritance Hierarchy
SystemObject
  Atalasoft.AnnotateAnnotationImage

Namespace:  Atalasoft.Annotate
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
[SerializableAttribute]
[TypeConverterAttribute(typeof(AnnotationImageConverter))]
public class AnnotationImage : ISerializable, 
	IDisposable

The AnnotationImage type exposes the following members.

Constructors
  NameDescription
Public methodAnnotationImage
Creates a new empty instance of AnnotationImage.
Public methodAnnotationImage(Image)
Creates a new instance of AnnotationImage specifying the System.Drawing.Image object used.
Public methodAnnotationImage(Stream)
Creates a new instance of AnnotationImage from the specified stream.
Public methodAnnotationImage(String)
Creates a new instance of AnnotationImage from the specified file.
Public methodAnnotationImage(AtalaImage)
Creates a new instance of AnnotationImage specifying the Atalasoft.Imaging.AtalaImage object used.
Public methodAnnotationImage(SerializationInfo, StreamingContext)
Creates a new instance of AnnotationImage from serialized data.
Public methodAnnotationImage(Int32, Int32, Int32, Byte)
Creates a new instance of AnnotationImage specifying the width, height, bit count and image data.
Public methodAnnotationImage(Int32, Int32, Int32, Byte, Byte)
Creates a new instance of AnnotationImage specifying the width, height, bit count, image and palette data.
Public methodAnnotationImage(Int32, Int32, Int32, Byte, Byte, Single, Single)
Creates a new instance of AnnotationImage specifying the image properties.
Top
Properties
  NameDescription
Public propertyBitCount
Gets the bit count (or bits-per-pixel) of the image.
Public propertyDisposed
Gets a value indicating whether this object has been disposed.
Public propertyDpiX
Gets the horizontal resolution of the image.
Public propertyDpiY
Gets the vertical resolution of the image.
Public propertyHeight
Gets the height of the image in pixels.
Public propertyImageData
Gets the image data.
Public propertyImageObject
Gets the actual image object for this AnnotationImage.
Public propertyPalette
Gets the image palette, if any.
Public propertyWidth
Gets the width of the image in pixels.
Top
Methods
  NameDescription
Public methodClone
Creates a copy of this AnnotationImage.
Public methodDispose
Releases resources used by this class.
Protected methodDispose(Boolean)
Releases resources used by this class.
Public methodEquals
Compares this AnnotationImage with another to see if they are equal.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Finalizes an instance of the AnnotationImage class.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetObjectData
Fills a SerializationInfo object with image data.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnCreateImageObject
Called when the ImageObject property is being requested.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

The properties of this class describe the image data, allowing the image data to be read by any application into a format it requires.

The ImageObject property is used to store the actual image created from these property values. Our default implementation will create a System.Drawing.Imaging.Image object. Inheritors should override the OnCreateImageObject method to generate the image object.

See Also