Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO] Loading PNGs.


VitinhooxD
 Share

Recommended Posts

@Vitin:

> Hello.I was thinking if there is an DLL , or a code for loading PNGs into Origins DD7.Is there any way I can load pngs into DD7?
>
> Thanks , Vitin

Best bet is libpng.

@Robin:

> Yes, but what's the point? All you're doing is increasing the loading time. You're converting PNG to BITMAP to DDS.
>
> You might as well just create/find a BITMAP compression & encryption algorithm.

Let's re-invent the wheel and create our own PIXELmap (Bitmaps are monochrome and should only be monochrome, Microsoft doesn't seem to understand this) format. Then you also forget to realise that PNG has to be decompressed to a PIXELmap. Therefore you aren't increasing the loading time compared to normal PNG loading, because it is the same. You also forget to realise that encrypting graphics is like locking the door of a room without walls; it's useless.

@Vitin:

> No :D I just need the transparency of the PNGs  , any codes or dlls for this?

DirectDraw doesn't support RGBA directly, as far as I know. The only reason you should use PNG is because of the compressed storage i.e. it uses less space for the same thing.

Regards,
  Stephan.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...