Share via


TRUECOLORINFO macro

The TRUECOLOR macro returns the TRUECOLORINFO structure from a VIDEOINFO structure. The TRUECOLORINFO structure contains color bitmasks followed by palette information, and is used for true-color images (16 bit or higher) that contain palettes.

Syntax

TRUECOLORINFO* TRUECOLORINFO(
    pbmi
);

Parameters

Return value

Returns a pointer to a TRUECOLORINFO structure.

Remarks

This macro calculates the address as an offset from the start of the BITMAPINFOHEADER structure, using the value of bmiHeader.biSize. Make sure to initialize the VIDEOINFO structure before calling this macro.

Requirements

Header

Amvideo.h (include Streams.h)

See also

Video and Image Functions