COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 03-22-2020, 06:57 PM   #1
vasyan
Human being with feelings
 
vasyan's Avatar
 
Join Date: Oct 2019
Location: Sayan Mountains, Siberia
Posts: 22
Default How to get color value of pixel in IBitmap?

If you have an IBitmap object, how do you get the pixel color value from the X and Y coordinates?
There may be some way, similar to that done in Windows API function GetPixel()?

Hypothetical example:
Code:
IBitmap Bitmap;
...
const IColor Color = Bitmap.GetPixel(X, Y);
vasyan is offline   Reply With Quote
Old 03-23-2020, 05:50 PM   #2
olilarkin
Human being with feelings
 
Join Date: Apr 2009
Location: Berlin, Germany
Posts: 1,248
Default

we don't have this feature currently in IGraphics, but you can get the API bitmap (e.g. skia bitmap, nanovg image) and use functionality in those libraries to get values of pixels

note new iplug2 forum:

https://iplug2.discourse.group
__________________
VirtualCZ | Endless Series | iPlug2 | Linkedin | Facebook
olilarkin is offline   Reply With Quote
Old 03-24-2020, 08:53 PM   #3
vasyan
Human being with feelings
 
vasyan's Avatar
 
Join Date: Oct 2019
Location: Sayan Mountains, Siberia
Posts: 22
Default

Quote:
Originally Posted by olilarkin View Post
we don't have this feature currently in IGraphics, but you can get the API bitmap (e.g. skia bitmap, nanovg image) and use functionality in those libraries to get values of pixels

note new iplug2 forum:

https://iplug2.discourse.group
Thanks!
vasyan is offline   Reply With Quote
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.