|
Post by scalion on Nov 12, 2023 19:25:14 GMT 1
Hi all,
This library i use to manage DIB. Example :
To create a dib : Dib = Dib32Bits(Widht,Height) To delete : DTB_free Dib
Any some additional utility (see demo).
Have a good day !
|
|
|
Post by (X) on Nov 12, 2023 21:25:06 GMT 1
|
|
|
Post by Roger Cabo on Nov 13, 2023 19:32:41 GMT 1
Hi :-) Scalion you made a lot nice ans useful stuff!
What is the advantage using a DiB? To bring DiB data into D2D and back?
|
|
|
Post by scalion on Nov 13, 2023 21:03:54 GMT 1
Hi :-) Scalion you made a lot nice ans useful stuff! What is the advantage using a DiB? To bring DiB data into D2D and back? Hi Roger, Yes why not, we can create and manipulate ARGB data (bluring, hsl, inversing, drawing shapes, etc...) and call D2Bitmap function to create one D2 image object. And finally the most important is you can manipulate directly ARGB data of an image an create your own control using image ocx or image editor.
I would still add that initially I created this tool to code a character generator (which I never did). Even exist GDI function to draw shapes i implemented basic shapes (plot,circle and line) because it's faster than Gdi on DIB !.
PS : I think i must documentate it... i will do that later.
|
|
|
Post by Roger Cabo on Nov 14, 2023 17:16:14 GMT 1
Oh interesting!! It's great to have single ideas, what we can do with. Mostly the complex demos didn't explain what happen exactly
|
|
|
Post by (X) on Nov 24, 2023 2:11:35 GMT 1
I incorporated my Color Space Library:"Lib_Color_Space.LG32"* and modified scalion's demo to show how to convert HSL to RGB colors...
* You'll have to compile the "Lib_Color_Space.G32" library and store it in your prefered library subdirectory.
I hope to continue playing with this superbe DTB library to see if it's possible to generate typical weather scenes.
|
|