Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Pixel-based Plotting in Perl?

by Joost (Canon)
on Sep 02, 2008 at 21:35 UTC ( #708611=note: print w/replies, xml ) Need Help??


in reply to Re^2: Pixel-based Plotting in Perl?
in thread Pixel-based Plotting in Perl?

Perl itself has no concept of pixels or screens. All it can do is call on libraries that manage displays or abstractions of displays. Most current operating systems will also not allow direct access to the display anyway - usually a program requests a window, which may be a MS Windows type window with title bar, menu etc, or may take up the whole available screen as a drawable map of pixels.

For many applications it's more useful to have the more abstract notion of a canvas, which usually means an area on which you can place a combination of vector (lines, curves, circles, polygons etc) and possibly bitmap primitives with varying levels op transparency, height (IOW place one primitive on top of another), rotations, scaling, translations and so on and let the canvas deal with rendering all those primitives to the screen/window or to some file format (and some file formats like postscript, pdf and svg can store the primitives directly, which is very useful for printing, since you can get a more or less unlimited resolution out of vector primitives)

And this is all just 2D imaging. 3D rendering libraries can be a lot more complex. :-) See OpenGL.

Replies are listed 'Best First'.
Re^4: Pixel-based Plotting in Perl?
by pat_mc (Pilgrim) on Sep 03, 2008 at 15:12 UTC
    Thanks for this very good primer on the underlying concepts of 2D-image processing, Jost. It is much appreciated!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2022-05-20 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (72 votes). Check out past polls.

    Notices?