How to know the attributes of a pixel in the image

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
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

#1 Post 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?

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

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

#2 Post 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.
greetings by OHR
Jimmy

User avatar
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

#3 Post 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.

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

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

#4 Post 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.
greetings by OHR
Jimmy


Post Reply