• 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: vImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vImage


  • Subject: Re: vImage
  • From: John Randolph <email@hidden>
  • Date: Mon, 12 Jan 2004 13:34:11 -0800

On Jan 10, 2004, at 3:45 PM, Shawn Erickson wrote:

vbuf->height = [imageRep size].height;
vbuf->width = [imageRep size].width;

Better make that:

vbuf->height = [imageRep pixelsHigh];
vbuf->width = [imageRep pixelsWide];

The size of an imageRep doesn't necessarily match its pixel dimensions.

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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: vImage
      • From: Amedeo Paglione <email@hidden>
References: 
 >vImage (From: Amedeo Paglione <email@hidden>)
 >Re: vImage (From: Shawn Erickson <email@hidden>)
 >Re: vImage (From: Amedeo Paglione <email@hidden>)
 >Re: vImage (From: Shawn Erickson <email@hidden>)

  • Prev by Date: resizing troubles
  • Next by Date: Problem with NSTimer in Cocoa Java
  • Previous by thread: Re: vImage
  • Next by thread: Re: vImage
  • Index(es):
    • Date
    • Thread