Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

GradientIt

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-25-2010, 08:58 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default GradientIt

For those who need to gradient everything ("Gradientitis") - here is a gradient creating library.

the way to do it is to create first your image, where all the elements to be gradiented are painted in "primer" color, and then activate the library on the rectangle which surrounds the elements.

Gradient can be linear, in any direction, or circular.

The library is for desktop and device, but give it time to complete its work when running on the device because it checks every pixel, sometimes even twice, to get a clean picture.

Edit: ver 1.1 with two options for circular method.
Edit: ver 1.2 with another property - Sensitivity, to solve inaccuracies in the color access in the device.
edit: ver 1.3 with better soultion for the same problem, Sensitivity deleted.
Attached Images
File Type: jpg grad1.jpg (36.5 KB, 31 views)
File Type: jpg grad2.jpg (35.4 KB, 25 views)
File Type: jpg grad3.jpg (37.5 KB, 30 views)
Attached Files
File Type: zip GradientIt1.3.zip (16.2 KB, 43 views)
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 09-28-2010 at 05:36 PM.
Reply With Quote
  #2 (permalink)  
Old 09-26-2010, 09:37 AM
ExcludeReality's Avatar
Senior Member
 
Join Date: Nov 2008
Location: Greenville, South Carolina
Posts: 166
Default

Very useful library! Can you please upload the help file in plain-text format, for those of us who don't use Microsoft Word.
__________________
Codito, ergo sum
"I code, therefore I am"
Reply With Quote
  #3 (permalink)  
Old 09-26-2010, 01:34 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Done
Updated to ver. 1.1
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 09-26-2010 at 02:14 PM.
Reply With Quote
  #4 (permalink)  
Old 09-27-2010, 01:17 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

I have found a bug which is due to difference in the RGB between drawn pixel and read pixel in the device. Until corrected - use only colors with 0 or 255 in their RGB elements for primer.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #5 (permalink)  
Old 09-27-2010, 08:24 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

I believe Version 1.2 solves the problem reported above.
ver 1.3 with a better solution.
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 09-28-2010 at 05:37 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 07:21 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0