Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1448

ColorPicker similar to PhotoShop's (Learn vbRichClient5.Cairo drawing step by step)

$
0
0
There are several good ColorPickers in the CodeBank, for example:

(1) ColinE66's ColourPicker[vbRichClient]: http://www.vbforums.com/showthread.p...r-vbRichClient
(2) Eduardo's Wheel Color Picker: http://www.vbforums.com/showthread.p...l-Color-Picker

But I need a ColorPicker similar to PhotoShop's, because PhotoShop is the most widely used drawing tool in the world.

wqweto wrote a very good ColorPicker similar to PhotoShop's 18 years ago, but its UI is so old that I can't use it in my projects. So I decided to rewrite wqweto's ColorPicker with vbRichClient5.Cairo.

Although I've used RC5.Cairo in my Spread and CodeEditor, Cairo's syntax is completely different from VB6 GDI, so that as long as I don't use Cairo for 6 months, I'll completely forget Cairo's usage, and I need to start learning it from scratch. Therefore, I think it necessary to record the process of rewriting wqweto's ColorPicker with RC5.Cairo for others interested in learning Cairo drawing.

It will take some time to rewrite wqweto's ColorPicker, because I need to spend a lot of time to search for information and test the usage of Cairo. Fortunately, Olaf has left a large number of Cairo examples on this forum. Searching these examples can solve almost all Cairo drawing problems.

wqweto's real-time PhotoShop like color-picker
http://www.planet-source-code.com/vb...xtCodeId=36529

Note:
My ultimate goal is to use RC5.Cairo to develop a professional and modern ColorPicker similar to PhotoShop's, which will be named vbColorPicker. If I have more time in the future, I'll rewrite Eduardo's Wheel Color Picker with Cairo and add it to vbColorPicker to form vbColorPickerPro. As for cwColorPicker, I need Olaf's help and guidance to complete it. Maybe ColinE66 is a better candidate to develop it.

List of revisions:
Code:

2020-06-25 p.m.
- Draw border on a picture(DreamManor -- RC5.Cairo)
- Draw bar selector (DreamManor -- RC5.Cairo)
- Draw bar selector (Olaf -- Best Practice)
- Draw rect marker (DreamManor -- RC5.Cairo)

2020-06-25
- First released learning/rewriting framework

Attached Files

Viewing all articles
Browse latest Browse all 1448

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>