Image loaded/displayed at the wrong size
Image loaded/displayed at the wrong size
- Subject: Image loaded/displayed at the wrong size
- From: email@hidden (Henri Hansen)
- Date: Sat, 15 Feb 2003 19:39:10 +0100
I have a question about the size an image gests asigned when it is opened.
My goal is to display a picture loaded from a file in a view whereas the
image
in the view should have the same dimensions (pixels wide and pixels heigh)
as
the image in the file (in other words: each pixel of the picture should
occupie
one pixel on the screen). But the dimensions of the shown picture are
always too
small eg. a picture that should be 512 pixels wide is only some 200 pixels
wide.
In my codeI'm opening a picture by (as test picture I'm using a tif)
theImage = [[NSImage alloc]initWith
Data:someData]
But the image is shown at the wrong size.
My question is now: Am I doing something wrong here or do I have to set
the size
of the "theImage" manualy by looking at the pixelsWide and pixelsHeigh of
the
TIFFRepresentation?
greetings henri
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.