Page 1 of 1

How to know the attributes of a pixel in the image

Posted: Tue Mar 17, 2015 1:47 pm
by Eugene Lutsenko
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

Posted: Tue Mar 17, 2015 3:33 pm
by Auge_Ohr
Eugene 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?
try GetPixel Function https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
i´m just working on this but i have Problem with COLORREF Structure ( Dword ? ) and ot4xb.

Re: How to know the attributes of a pixel in the image

Posted: Tue Mar 17, 2015 8:20 pm
by Eugene Lutsenko
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

Posted: Tue Mar 17, 2015 11:10 pm
by Auge_Ohr
Eugene 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 have read what Roger wrote but you need a Bitmap (File) for it ;)

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.

Re: How to know the attributes of a pixel in the image

Posted: Fri Apr 03, 2015 1:28 pm
by Eugene Lutsenko
The theme was continued and the solution here:
http://bb.donnay-software.com/donnay/vi ... f=9&t=1442