Check the pixel value (X, Y) of the graphic

This forum is for eXpress++ general support.
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:

Check the pixel value (X, Y) of the graphic

#1 Post by Eugene Lutsenko »

How can I know the value of the pixel with coordinates (X, Y) and a graphical object?

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

Re: Check the pixel value (X, Y) of the graphic

#2 Post by Auge_Ohr »

Eugene Lutsenko wrote:How can I know the value of the pixel with coordinates (X, Y) and a graphical object?
do you mean RGB Value from 1 Pixel ? what do you want to do with that Value ?
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: Check the pixel value (X, Y) of the graphic

#3 Post by Eugene Lutsenko »

May be. Yet it would be desirable to be able to read the pixel values ​​for the coordinates in a graphic object to analyze it, for example to draw contours do fill and the like.

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

Re: Check the pixel value (X, Y) of the graphic

#4 Post by Auge_Ohr »

Eugene Lutsenko wrote:... for example to draw contours do fill and the like.
if i draw a circle and save it as Bitmap. do you want to fill circle of Bitmap ?
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: Check the pixel value (X, Y) of the graphic

#5 Post by Eugene Lutsenko »

In general yes, but only a circle, and any figure formed by a closed line. Moreover, the line color of the shape itself and the background mogut change and we must first select the path to a high gradient (contrast), color and brightness, and then later fill.

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

Re: Check the pixel value (X, Y) of the graphic

#6 Post by Auge_Ohr »

Eugene Lutsenko wrote:In general yes, but only a circle, and any figure formed by a closed line. Moreover, the line color of the shape itself and the background mogut change and we must first select the path to a high gradient (contrast), color and brightness, and then later fill.
use Photoshop ;)
perhaps XOANON Lib have those Windows API Function for Bitmap manipulation.
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: Check the pixel value (X, Y) of the graphic

#7 Post by Eugene Lutsenko »

I want to write it all in Alaska and I saw something like it in Alaska, but I can not find. still look for

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

Re: Check the pixel value (X, Y) of the graphic

#8 Post by Auge_Ohr »

hi,

i have played with XOANON Lib and found API Function "ExtFloodFill"
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
ExtFloodFill.JPG
ExtFloodFill.JPG (82 KiB) Viewed 11664 times
Problem : while i have not use a Xbase++ Presspace yet it "just" display ... but will disappear when covered by other Window.
FILLUP.zip
(242.42 KiB) Downloaded 629 times
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: Check the pixel value (X, Y) of the graphic

#9 Post by Eugene Lutsenko »

Cool! And how to write it in Alaska?

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

Re: Check the pixel value (X, Y) of the graphic

#10 Post by Auge_Ohr »

Eugene Lutsenko wrote:Cool! And how to write it in Alaska?
as i say you need XOANON Lib from Simon Burford ... but it is a lot of Windows API using BAP
greetings by OHR
Jimmy

Post Reply