ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Best way to show color palette
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - May 31 2016 :  09:40:02  Show Profile  Reply
Hello,

I want to show the user a color palette when a button is clicked.

In this color palette I want to show predefined colors.

What is the best way to do this. Is there any sample showing a predefined color palette?

TIA



Yogi Yang

yogiyang

India
727 Posts

Posted - May 31 2016 :  10:39:06  Show Profile  Reply
Ok

Found this beautiful mncolor vcl.

Now I have been able to show user a palette from which to select.

But now I have another problem.

How to fill Layer 0 with a Gradian color between to selected colors by user?

TIA


Yogi Yang
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 31 2016 :  10:43:01  Show Profile  Reply
Please post link.
Gradient vcl: http://www.delphiarea.com/?dl_id=13

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

yogiyang

India
727 Posts

Posted - Jun 01 2016 :  01:29:18  Show Profile  Reply
Wow!!!
Thanks for this.

That will help me a lot!

TIA


Yogi Yang
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jun 02 2016 :  17:03:58  Show Profile  Reply
You can load a palette by using mbColorPalette which is part of the mbColorTools. The palette colors are loaded from a stringlist of colors that you can create manually or the palette colors can be loaded from the IEBitmap.Palette. The mbColorPalette can contain any number of colors.

Download Color Library: https://www.dropbox.com/s/m41hh9xrnsqh815/mbColorLib.zip?dl=0
or
http://mxs.bergsoft.net/index.php?p=2

Download Demo: attach/w2m/201652692951_PaletteColor.zip
57.27 KB

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: