• 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: drawing an array of pixels to the screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawing an array of pixels to the screen


  • Subject: Re: drawing an array of pixels to the screen
  • From: Alex Kac <email@hidden>
  • Date: Fri, 9 Nov 2007 22:37:11 -0600

OpenGL. Its easy to use on OS X and its a great 2D drawing mechanism. As Ben at VMware said - its as close to BitBlt as you're going to get on OS X :)

On Nov 9, 2007, at 9:57 PM, email@hidden wrote:

Message: 12
Date: Fri, 9 Nov 2007 22:27:19 -0500
From: Jason Horn <email@hidden>
Subject: drawing an array of pixels to the screen
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

I am working on a computer vision based app that detects objects in
video images.  I have to implement custom algorithms to locate and
track objects, so I need to write code that has direct access to the
pixel values and keep track of the x,y coordinates of certain
objects.  This is easiest to do with the image represented as a 2D
array of int values.  However, it seems that the only way to draw
bitmaps to the screen is with NSImage and NSBitmapImageRep or
CIImage.  Is there another way?  It seems like a waste (and a
performance hit) to convert a 2D array of pixel values into a byte
stream every time you want to display the image.  Is there a way to
draw the pixel values directly to the screen (and do it quickly).

Thanks for any ideas.

Alex Kac - President and Founder Web Information Solutions, Inc. - Microsoft Certified Partner

"If at first you don't succeed, skydiving is not for you."
-- Francis Roberts



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Leopard: fileExtensionsFromType: deprecation breaks saving with extension
  • Next by Date: Re: Leopard: fileExtensionsFromType: deprecation breaks saving with extension
  • Previous by thread: Re: drawing an array of pixels to the screen
  • Next by thread: Re: drawing an array of pixels to the screen
  • Index(es):
    • Date
    • Thread