New topic: Color Reduction Algorithm
<http://forums.realsoftware.com/viewtopic.php?t=46849> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message DaveS Post subject: Color Reduction AlgorithmPosted: Wed Feb 06, 2013 9:04 pm Joined: Sun Aug 05, 2007 10:46 am Posts: 4500 Location: San Diego, CA Does anyone have a RealStudio implementation of a color reduction (octree?) algorithm I want to be able to encapsulate it to a single call something like new_pic=reduce_colors(old_pic, new_color_cnt) where new_pic and old_pic are picture objects, and new_color_cnt is [4, 16, 256] this is to REDUCE the # of colors... not necessaily the bit depth (it will remain a 32bit picture) I have code to do this for GRAYSCALE.... but I need it for COLOR as well I can "fake" then 256 level, by saving it as a GIF, and reloading it again... but I want to avoid doing that, plus I need 4 color and 16 color modes as well My application can now "do" these things.. but with a call to QTExporter (requiring the user to interact with ITS dialog), and QTExporter is deprecated in RealStudio making it hard to move this code into the future.. _________________ Dave Sisemore MacPro, OSX Lion 10.7.4 RB2012r1 Note : I am not interested in any solutions that involve custom Plug-ins of any kind Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
