Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  Files to download  :  Links for developers  :  Privacy policy  :  Web Resources  :  Polls  
    MacOSX Guru Site Information, tips and tricks, FAQ for Mac OS X developers    
 Welcome to MacOSX Guru Site
 Saturday, March 23 2019 @ 10:30 PM UTC

How to tint an image ?

Objective-CI'm working on a project that needs to take a bitmap image provided by the user and transform it so that it will print with a single color specified by the user.

Take a look at the NSBitmapImageRep documentation and the method colorizeByMappingGray:toColor:blackMapping:whiteMapping:
If you want more control you can still manipulate the pixels yourself, see the SGI for information about the theory.
Take a look at this example about accessing pixels of a NSBitmapImageRep.

What's Related

Story Options

How to tint an image ? | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
 Copyright © 2019 MacOSX Guru Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.07 seconds