Rockbox Technical Forums

Support and General Use => Plugins/Viewers => Topic started by: SliMM on March 21, 2007, 04:54:56 AM

Title: opacity
Post by: SliMM on March 21, 2007, 04:54:56 AM
Hello. I'm currently working on a set of functions for drawing semi-transparent bitmaps, rectangles and for using an alpha opacity channel with bitmaps :)
Title: Re: opacity
Post by: xlarge on March 21, 2007, 06:38:22 AM
Good... Intended for implemeting in rockbox?
Title: Re: opacity
Post by: SliMM on March 21, 2007, 06:58:49 AM
It is intended for implementing in the plugin api some time in the future. the first functions are attached. i'll work on bitmaps now. i think alpha channel can be another grayscale bitmap.
http://www.pastebin.ca/404924 <-- here is helloworld.c
http://www.pastebin.ca/404925 <-- here is the file with the functions, alphaopacity.c
http://stereo3d.adpeach.com/scrshot.jpg <-- here is a screenshot
Also, if anyone is interested in implementing Wu's line algorit, for anti-aliased lines, the pseudocode is here: http://en.wikipedia.org/wiki/Xiaolin_Wu's_line_algorithm
Title: Re: opacity
Post by: SliMM on April 13, 2007, 03:41:50 AM
I have finally finished a first set of semi-transparency functions.
Here is the link to the tracker task: http://www.rockbox.org/tracker/task/7022
:)