Jump to content

Error loading image


Recommended Posts

Posted

Do images need to abide by the power of 2? And can we use PNG images with an alpha transparency?

The following line throws an error stating unable to load the image.. What must I do to load it?

dxDrawImage(10, 10, 48, 48, "img/display.png") 

Posted
Do images need to abide by the power of 2?

they don't. but if you want pixel-perfect display of your images — then yes, power of 2 is the way. otherwise you'll have blurring issues.

And can we use PNG images with an alpha transparency?

yes.

Posted

Hmm, okay. I didn't know that we needed to add it into the meta.

On a side note, friends that I ask to come to my home server to help me test scripts cannot seem to download any scripts anymore. They eventually get kicked because the download times out. Any ideas?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...