Class: TMatrixDither

Declaration: DitherHints.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TDitherHint

Inherited By:

THalftoneDither TOrderedDither

Purpose:

TMatrixDither implements ordered dithering or halftone dithering through the use of a matrix. The matrix is a flexible, 2-D array whose contents specify the order or the manner in which pixels are highlighted.

Instantiation:

Abstract base class; do not allocate.

Deriving Classes:

Provided classes include TOrderedDither and THalftoneDither.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TMatrixDither::~TMatrixDither

virtual ~ TMatrixDither ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMatrixDither::IsCenterClustered

virtual bool IsCenterClustered () const

Interface Category:

API.

Purpose:

Returns true if the resulting matrix is clustered in the center. High resolution printing devices often work only with center-clustered matrices.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns true if the matrix is clustered in the center.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMatrixDither::CreateDitherMatrix

virtual DitherMatrix * CreateDitherMatrix (GCoordinate horzDPI, GCoordinate vertDPI) const

Interface Category:

API.

Purpose:

Creates the dither matrix specifying the dithering algorithm.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns a reference to the resulting dither matrix.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMatrixDither::operator=

TMatrixDither & operator =(const TMatrixDither & source)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMatrixDither::operator>>=

virtual TStream & operator >>=(TStream & towhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMatrixDither::operator<<=

virtual TStream & operator <<= (TStream & fromwhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMatrixDither::TMatrixDither

  1. TMatrixDither (bool primary =true)
  2. TMatrixDither (const TMatrixDither &)

Interface Category:

API.

Purpose:

  1. Creates a primary or secondary matrix dither hint.
  2. Copy constructor.

Calling Context:

  1. Call to create a primary or secondary matrix dither hint.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMatrixDither::TemporaryTypeID

virtual EDitherHintClassID TemporaryTypeID () const

Interface Category:

API.

Purpose:

Returns the type identifier for the specific dither hint class. The return value is one of the values from the enum EDitherHintClassID, defined by this class. This is a temporary replacement for the C++ language typeid operator. This function will go away in the future.

Calling Context:

Call this function instead of the C++ language typeid operator.

Parameters:

Return Value:

Returns kMatrixDither.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TMatrixDither::GetBaseTemporaryTypeID

virtual EDitherHintClassID GetBaseTemporaryTypeID () const

Interface Category:

API.

Purpose:

Returns the type identifier for the specific dither hint class. The return value is one of the values from the enum EDitherHintClassID, defined by this class. This is a temporary replacement for the C++ language typeid operator. This function will go away in the future.

Calling Context:

Call this function instead of the C++ language typeid operator.

Parameters:

Return Value:

kMatrixDither.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.