• 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
Re: Image loaded/displayed at the wrong size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image loaded/displayed at the wrong size


  • Subject: Re: Image loaded/displayed at the wrong size
  • From: Shawn Erickson <email@hidden>
  • Date: Sat, 15 Feb 2003 10:50:38 -0800

On Saturday, February 15, 2003, at 10:39 AM, Henri Hansen wrote:

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.

Does the image file correctly describe it's dimensions or desired dimensions? Most likely but sometime that can be the source of a problem.

You didn't exactly say how you are drawing the image... is the thing you are drawing into only 200 pixels wide?

-Shawn
_______________________________________________
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>
References: 
 >Image loaded/displayed at the wrong size (From: email@hidden (Henri Hansen))

  • Prev by Date: Image loaded/displayed at the wrong size
  • Next by Date: Re: NSImage release causing NSPrintOperation problem
  • Previous by thread: Image loaded/displayed at the wrong size
  • Next by thread: Re: Image loaded/displayed at the wrong size
  • Index(es):
    • Date
    • Thread