B
Ben
Hi at all
I am looking for the natural size of an image
I found this function :
while ((imgHeight = image.getHeight(this)) == -1 ) {
// loop until image loaded
}
while ((imgWidth = image.getWidth(this)) == -1 ) {
// loop until image loaded
}
But firefox errors console write that getWidth is not a valid function
Pleae can you tell me if there is a wrong into my code or how can I get the
width and height of an images with others methods?
Thenk you very much
I am looking for the natural size of an image
I found this function :
while ((imgHeight = image.getHeight(this)) == -1 ) {
// loop until image loaded
}
while ((imgWidth = image.getWidth(this)) == -1 ) {
// loop until image loaded
}
But firefox errors console write that getWidth is not a valid function
Pleae can you tell me if there is a wrong into my code or how can I get the
width and height of an images with others methods?
Thenk you very much