Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: How to get pixel color from 3d application

by tonyc (Friar)
on Mar 01, 2016 at 22:32 UTC ( [id://1156593]=note: print w/replies, xml ) Need Help??


in reply to Re: How to get pixel color from 3d application
in thread How to get pixel color from 3d application

You can improve performance by only fetching a subset of the screen with screenshot:

my $img = screenshot(left => 68, right => 69, top => 58, bottom => 59);

You're also writing the screenshot to a file, then reading the same image back in again, which is a waste.

Replies are listed 'Best First'.
Re^3: How to get pixel color from 3d application
by JuR (Initiate) on Mar 02, 2016 at 04:22 UTC
    Good idea, ill try to modify the code, thanks. If someone have a suggestions, please post it :) Thanks !

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1156593]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-05-27 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found