Beispiel #1
0
HGLOBAL ConstructPalette( HPALETTE hPal )
/************************************************************************/
{
if ( !hPal )
	return( NULL );
return( CopyPalette( hPal ) );
}
Beispiel #2
0
void Burger::FileBMP::SetPalette(const RGBAWord8_t *pPalette,Word uStartIndex,Word uPaletteSize)
{
	// Invalid start index?
	if (uStartIndex<256) {
		// Is the size in range?
		if ((uPaletteSize+uStartIndex)>256U) {
			// Set the size to the maximum (Clamp)
			uPaletteSize = 256U-uStartIndex;
		}
		CopyPalette(m_Palette+uStartIndex,pPalette,uPaletteSize);
	}
}