How to know the attributes of a pixel in the image
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
How to know the attributes of a pixel in the image
How to know the attributes of a pixel in the image. I want to upload an image and analyze it. How to upload an existing image is clear to me. And how to analyze it, I do not know. And I need it. It is advisable to use the standard graphical Alaska. Can anyone help?
Re: How to know the attributes of a pixel in the image
try GetPixel Function https://msdn.microsoft.com/en-us/librar ... 85%29.aspxEugene Lutsenko wrote:How to know the attributes of a pixel in the image. I want to upload an image and analyze it. How to upload an existing image is clear to me. And how to analyze it, I do not know. And I need it. It is advisable to use the standard graphical Alaska. Can anyone help?
i´m just working on this but i have Problem with COLORREF Structure ( Dword ? ) and ot4xb.
greetings by OHR
Jimmy
Jimmy
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to know the attributes of a pixel in the image
Roger wrote http://bb.donnay-software.com/donnay/vi ... f=9&t=1442 that it is necessary to download bmp-file as binary and analyze it, knowing the format: http://www.fileformat.info/format/bmp/egff.htm. But before the analysis of the image must also determine the type of bmp-file. It's you and trying to do? It is a pity that in Alaska there is no standard read command parameters pixel downloaded image file.
Re: How to know the attributes of a pixel in the image
i have read what Roger wrote but you need a Bitmap (File) for itEugene Lutsenko wrote:Roger wrote http://bb.donnay-software.com/donnay/vi ... f=9&t=1442 that it is necessary to download bmp-file as binary and analyze it, knowing the format: http://www.fileformat.info/format/bmp/egff.htm. But before the analysis of the image must also determine the type of bmp-file. It's you and trying to do? It is a pity that in Alaska there is no standard read command parameters pixel downloaded image file.

i´m try to "read" DWM ( Desktop Window Manager ) Color when change "Theme" to assign same Color to my Ownerdraw Part. this work with Codejock SkinFramework but i have Problem in "pure" Xbase++ while i can not convert Hue/Sat of 32bit AARRBBGG to Xbase++ Color.
http://stackoverflow.com/questions/3560 ... lass-color
First step is to parse AARRGGBB. Then take the resulting RGB and convert to HSV. The pure Hue plus Saturation at full brightness is the base color. Now overlay Value as a grayscale at Alpha over top of pure Hue and Saturation to get the Aero color. Then overlay that color over the frame color: rgb(235, 235, 235) at Intensity to get the final Composite Aero color result.
greetings by OHR
Jimmy
Jimmy
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact: