MCPcopy Create free account
hub / github.com/SpartanJ/eepp / createMaskFromColor

Method createMaskFromColor

src/eepp/graphics/image.cpp:1256–1258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1254}
1255
1256void Image::createMaskFromColor( const Color& ColorKey, Uint8 Alpha ) {
1257 replaceColor( ColorKey, Color( ColorKey.r, ColorKey.g, ColorKey.b, Alpha ) );
1258}
1259
1260void Image::createMaskFromColor( const RGB& ColorKey, Uint8 Alpha ) {
1261 createMaskFromColor( Color( ColorKey.r, ColorKey.g, ColorKey.b, 255 ), Alpha );

Callers 3

loadFromStreamMethod · 0.45
loadFromPixelsMethod · 0.45
loadTexturesMethod · 0.45

Calls

no outgoing calls

Tested by 1

loadTexturesMethod · 0.36