• 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: 2D grayscale image from an array of floats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2D grayscale image from an array of floats


  • Subject: Re: 2D grayscale image from an array of floats
  • From: Scott Ribe <email@hidden>
  • Date: Fri, 18 Dec 2009 18:04:37 -0700
  • Thread-topic: 2D grayscale image from an array of floats

A couple more things I've thought of:

- There is such a thing as a grayscale image that uses floats instead of
bytes for values. You may not even need to do a conversion.

- You may even be able to wrap your buffer up in an image rep without
copying it.

I don't use NSImage; my custom image views do some drawing at lower levels;
so I don't know for sure what all formats are supported. You'd have to study
the docs more. As a newbie, the first thing you should probably do is take
the shortest path to getting something on the screen, in other words finish
what you were already doing--then experiment with ways to avoid conversion
and/or copying.

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

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

  • Follow-Ups:
    • Re: 2D grayscale image from an array of floats
      • From: Martin Beroiz <email@hidden>
References: 
 >Re: 2D grayscale image from an array of floats (From: douglas welton <email@hidden>)

  • Prev by Date: Re: App works when launched from Xcode, not from Finder
  • Next by Date: Re: NSApplicationLoad() can't connect to window server in user logged out.
  • Previous by thread: Re: 2D grayscale image from an array of floats
  • Next by thread: Re: 2D grayscale image from an array of floats
  • Index(es):
    • Date
    • Thread