• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Image loaded/displayed at the wrong size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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]initWithData: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.

  • Follow-Ups:
    • Re: Image loaded/displayed at the wrong size
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: ProjectBuilder
  • Next by Date: Re: Image loaded/displayed at the wrong size
  • Previous by thread: Re: ARCHIVING WITH CIRCULAR REFERENCES
  • Next by thread: Re: Image loaded/displayed at the wrong size
  • Index(es):
    • Date
    • Thread