Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loadImage does not properly set width and height of image #1

Open
GoogleCodeExporter opened this issue Aug 18, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

void dropEvent(DropEvent theDropEvent) {
  if (theDropEvent.isImage()) {
    PImage droppedImg = theDropEvent.loadImage();
    println(droppedImg.width + " " + droppedImg.height + " " + droppedImg.pixels.length);
}

What is the expected output? 
actual width and height of image.

What do you see instead?
4 4 16 (no matter the size of the image)

using:

    droppedImg= loadImage(theDropEvent.filePath());

instead works as expected.


What version of the product are you using? On what operating system?
processing 1.2.1 on mac 10.6.6 with sDrop 0.1.5


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 12 Mar 2011 at 7:22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant