SDL2Surface.setColorKey

Enable the key color as the transparent key.

  1. void setColorKey(bool enable, uint key)
    class SDL2Surface
    void
    setColorKey
    (
    bool enable
    ,
    uint key
    )
  2. void setColorKey(bool enable, ubyte r, ubyte g, ubyte b, ubyte a)

Throws

SDL2Exception on error.

See Also

Meta