Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #57276
| From | owl <owl@rooftop.invalid> |
|---|---|
| Newsgroups | alt.os.linux |
| Subject | Re: reading / writing the color of an absolute pixel (x,y) of the physical screen |
| Date | 2019-06-26 12:35 +0000 |
| Organization | O.W.L. |
| Message-ID | <avi030fag.naoa@rooftop.invalid> (permalink) |
| References | <qetg1o$euc$1@dont-email.me> <qetvbs$fvj$1@dont-email.me> <qeu9rb$72a$1@dont-email.me> <qevas802449@news1.newsguy.com> <qevhdt$o4u$1@dont-email.me> |
Soviet_Mario <SovietMario@cccp.mir> wrote:
> On 26/06/19 10:37, F. Russell wrote:
>> On Wed, 26 Jun 2019 01:13:47 +0200, Soviet_Mario wrote:
>>
>>>
>>> Oh, I'm not going to do any video graphics, I just need to
>>> translate some old Visual Basic programs doing some
>>> specialized tasks, like :
>>> Areas measuring in pictures basing on colour patterns criteria
>>> Applying some kind of watermarks and/or steganographs with
>>> rather personal modes.
>>>
>>
>> Digital image analysis/manipulation is accomplished not by
>> reading screen pixels but by accessing the image data that
>> is stored in memory.
>>
>
> don't add additional unnecessary restrictions.
> Sometimes, instead of taking a screenshot of another program
> showing some graphical content (even text well formatted),
> save it to a file, locate and open the file in my program,
> I'd like to go the short way and capturing the rectangle
> directly from the screen.
> I tried copy to memory from screen snapshot, but this in
> smart programs (LbO) works fine, myself in Gambas was not
> able to replicate the results, using the "clipboard" object.
> I don't know why (I'll inquiry further as it would be an
> acceptable path avoiding creating useless temp files on disk)
>
> I don't know how to politely query another program for its
> client-area window, I just need a bitmap copied
>
Some combination of the following utilities might help with what you
you need. The source code for grabc is particularly small and clear.
I've borrowed and modified some of the code from scrot to do some things.
But depending on what you are doing, you might get by with a shell script
piping some of the very flexible and useful commandline utilities that
are already available.
----
XWININFO(1) General Commands Manual XWININFO(1)
NAME
xwininfo - window information utility for X
----
XPROP(1) General Commands Manual XPROP(1)
NAME
xprop - property displayer for X
----
XWD(1) General Commands Manual XWD(1)
NAME
xwd - dump an image of an X window
----
GRABC(1) General Commands Manual GRABC(1)
NAME
grabc - identifies an onscreen colour using a crosshair cursor.
SYNOPSIS
----
XDOTOOL(1) XDOTOOL(1)
NAME
xdotool - command-line X11 automation tool
---
scrot(1) General Commands Manual scrot(1)
NAME
scrot - capture a screenshot using imlib2
---
XCreateImage(3) XLIB FUNCTIONS XCreateImage(3)
NAME
XInitImage, XCreateImage, XGetPixel, XPutPixel, XSubImage, XAddPixel,
XDestroyImage - image utilities
Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
reading / writing the color of an absolute pixel (x,y) of the physical screen Soviet_Mario <SovietMario@CCCP.MIR> - 2019-06-25 17:53 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Alfonso P Cutaway <dweed54@gmail.com> - 2019-06-25 16:01 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen "R.Wieser" <address@not.available> - 2019-06-25 19:03 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Alfonso P Cutaway <dweed54@gmail.com> - 2019-06-25 18:08 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen "R.Wieser" <address@not.available> - 2019-06-25 21:44 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Alfonso P Cutaway <dweed54@gmail.com> - 2019-06-26 00:37 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen "R.Wieser" <address@not.available> - 2019-06-26 10:50 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Alfonso P Cutaway <dweed54@gmail.com> - 2019-06-26 19:43 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen "Carlos E.R." <robin_listas@es.invalid> - 2019-06-26 22:37 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Alfonso P Cutaway <dweed54@gmail.com> - 2019-06-26 20:55 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen "Carlos E.R." <robin_listas@es.invalid> - 2019-06-26 23:29 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Aragorn <thorongil@telenet.be> - 2019-06-26 23:50 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Alfonso P Cutaway <dweed54@gmail.com> - 2019-06-26 22:50 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen DecadentLinuxUserNumeroUno@decadence.org - 2019-06-28 12:50 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen DecadentLinuxUserNumeroUno@decadence.org - 2019-06-28 12:56 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen "R.Wieser" <address@not.available> - 2019-06-27 11:10 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Soviet_Mario <SovietMario@CCCP.MIR> - 2019-06-27 12:39 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen "R.Wieser" <address@not.available> - 2019-06-27 14:43 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Soviet_Mario <SovietMario@CCCP.MIR> - 2019-06-27 15:57 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Soviet_Mario <SovietMario@CCCP.MIR> - 2019-06-26 01:03 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Alfonso P Cutaway <dweed54@gmail.com> - 2019-06-26 00:38 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Wildman <best_lay@yahoo.com> - 2019-06-25 11:18 -0500
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Soviet_Mario <SovietMario@CCCP.MIR> - 2019-06-26 01:02 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Aragorn <thorongil@telenet.be> - 2019-06-26 01:08 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Bit Twister <BitTwister@mouse-potato.com> - 2019-06-25 11:48 -0500
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Paul <nospam@needed.invalid> - 2019-06-25 16:14 -0400
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Soviet_Mario <SovietMario@CCCP.MIR> - 2019-06-26 01:13 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen "F. Russell" <fr@random.info> - 2019-06-26 08:37 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Soviet_Mario <SovietMario@CCCP.MIR> - 2019-06-26 12:29 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Bit Twister <BitTwister@mouse-potato.com> - 2019-06-26 06:55 -0500
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen "F. Russell" <frussell@random.info> - 2019-06-26 12:15 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen owl <owl@rooftop.invalid> - 2019-06-26 12:35 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Soviet_Mario <SovietMario@CCCP.MIR> - 2019-06-26 15:44 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen owl <owl@rooftop.invalid> - 2019-06-26 14:00 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Soviet_Mario <SovietMario@CCCP.MIR> - 2019-06-26 21:01 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen owl <owl@rooftop.invalid> - 2019-06-26 23:05 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Soviet_Mario <SovietMario@CCCP.MIR> - 2019-06-27 12:27 +0200
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen owl <owl@rooftop.invalid> - 2019-06-27 13:53 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Jasen Betts <jasen@xnet.co.nz> - 2019-06-26 10:13 +0000
Re: reading / writing the color of an absolute pixel (x,y) of the physical screen Soviet_Mario <SovietMario@CCCP.MIR> - 2019-06-26 12:49 +0200
csiph-web