Class: Tb1R5G5B5Image

Declaration: GraphicImage.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TModifiableImage

Inherited By:

None.

Purpose:

Tb1R5G5B5Image is a concrete 5-bit RGB image with a 1-bit pad ( b stands for blank ). Each pixel of this image is specified with 16 bits. These 16 bits are divided into one 1-bit component (blank) and three 5-bit components (red, green, and blue). The blank component is undefined. The red, green, and blue components form a coordinate in an RGB space. To derive an XYZcolor from this RGB triplet use the TColorProfile of the image.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: Tb1R5G5B5Image::Tb1R5G5B5Image

  1. Tb1R5G5B5Image ()
  2. Tb1R5G5B5Image (const TImage &)
  3. Tb1R5G5B5Image (const Tb1R5G5B5Image &)
  4. Tb1R5G5B5Image (const TGPoint & dstOrigin, long widthInPixels, long heightInPixels, TGPoint dpi =TGImage :: k72DPI, TGrafBundle * adoptBundle =NIL, TGImage :: EOrientation orientation =TGImage :: kIdentity, const TColorProfile & theProfile =* TColorProfile :: GetDefaultColorProfile (), const TGPoint & sourceOrigin =TGPoint ( 0, 0 ))
  5. Tb1R5G5B5Image (const TGPoint & dstOrigin, const TGPoint & imageSizeInWorldSpace, TGPoint dpi =TGImage :: k72DPI, TGrafBundle * adoptBundle =NIL, TGImage :: EOrientation orientation =TGImage :: kIdentity, const TColorProfile & theProfile =* TColorProfile :: GetDefaultColorProfile (), const TGPoint & sourceOrigin =TGPoint ( 0, 0 ))

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Creates a Tb1R5G5B5Image from another type of image.
  3. Copy constructor.
  4. Creates a Tb1R5G5B5Image initialized with the given parameters.
  5. Creates a Tb1R5G5B5Image initialized with the given parameters.

Calling Context:

  1. Called by the stream-in operators.
  2. Call to create a Tb1R5G5B5Image from another type of image.
  3. Called to copy an object.
  4. Call to create a new Tb1R5G5B5Image.
  5. Call to create a new Tb1R5G5B5Image.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: Tb1R5G5B5Image::~Tb1R5G5B5Image

virtual ~ Tb1R5G5B5Image ()

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: Tb1R5G5B5Image::operator=

Tb1R5G5B5Image & operator =(const Tb1R5G5B5Image & source)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

Returns a 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: Tb1R5G5B5Image::operator>>=

virtual TStream & operator >>=(TStream &) 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: Tb1R5G5B5Image::operator<<=

virtual TStream & operator <<= (TStream &)

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: Tb1R5G5B5Image::CreateGrafDevice

virtual TGrafDevice * CreateGrafDevice ()

Interface Category:

API.

Purpose:

Creates a new rendering pipeline device for an image object.

Calling Context:

Called when no graphics device has been defined for the object.

Parameters:

Return Value:

Returns a pointer to a new graphics device.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: Tb1R5G5B5Image::GetSourceOrigin

virtual TGPoint GetSourceOrigin () const

Interface Category:

API.

Purpose:

Returns the defined origin for the source image of a given object.

Calling Context:

Called when the user needs to determine the origin of the source image.

Parameters:

Return Value:

Returns the coordinate which corresponds to the location of the origin of the source image (in pixel space).

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.