Windows Dev Center

COLORS function

The COLORS macro retrieves the palette entries from a VIDEOINFO structure.

Syntax


RGBQUAD* COLORS(
    pbmi
);

Parameters

pbmi

Pointer to a VIDEOINFO structure.

Return value

Returns a pointer to an array of RGBQUAD structures.

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)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

Video and Image Functions

 

 

Community Additions

ADD
Show:
© 2015 Microsoft