Click or drag to resize

BinaryPaletteEnforcer Class

A ResourceReleaser<T> that inverts a 1BPP AtalaImage on creation if it does not have the desired photometric interpretation, and inverts it again at the end of its lifetime.
Inheritance Hierarchy
System.Object
  Atalasoft.Imaging.ResourceReleaser<BinaryPaletteEnforcer.EnforcerState>
    Atalasoft.Imaging.BinaryPaletteEnforcer

Namespace:  Atalasoft.Imaging
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public class BinaryPaletteEnforcer : ResourceReleaser<BinaryPaletteEnforcer.EnforcerState>

The BinaryPaletteEnforcer type exposes the following members.

Methods
  NameDescription
Public methodDispose()
Disposes the ResourceReleaser.
(Inherited from ResourceReleaser<T>.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
(Inherited from ResourceReleaser<T>.)
Public methodStatic memberEnforceMinIsBlack
Returns an instance of a BinaryPaletteEnforcer that enforces a MinIsBlack photometric interpretation of the image until it is released.
Public methodStatic memberEnforceMinIsWhite
Returns an instance of a BinaryPaletteEnforcer that enforces a MinIsWhite photometric interpretation of the image until it is released.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Inherited from ResourceReleaser<T>.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
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.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
Remarks
The photometric interpretation of a 1BPP image corresponds to the order of its two palette entries. MinIsWhite corresponds to the 0-index representing white pixels, and MinIsBlack corresponds to the 0-index representing black pixels.
See Also