Specifying transparent color for bitmaps?

edited February 2012 in Help request
Is there a way to indicate to Orx that a certain color in a bitmap (e.g. JPEG) is to be rendered transparently?

Or is it only possible to achieve transparency using file formats that support it, such as PNG?

Comments

  • edited February 2012
    That would be the orxDisplay_SetBitmapColorKey(). :)

    Unfortunately it's more of a legacy feature for platforms that don't support alpha channel and it's currently not implemented in any default plugin.

    I could still easily implement the feature though. However, in the case of .jpg images, it's unlikely to work properly as the JPEG compression alters the pixel values and you will end up with weird color patches and transparency that will not match the original contour.
Sign In or Register to comment.