MCPcopy Create free account
hub / github.com/NetHack/NetHack / setFromImage

Method setFromImage

outdated/win/Qt3/tileedit.cpp:308–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void TilePalette::setFromImage( const QImage& i )
309{
310 num = i.numColors();
311 rgb = new QRgb[num];
312 memcpy(rgb, i.colorTable(), num*sizeof(QRgb));
313 repaint(FALSE);
314}
315
316void TilePalette::setColor(QRgb c)
317{

Callers 1

editMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected