Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Point plotting -- GD and Prima

by Discipulus (Canon)
on Mar 17, 2021 at 21:16 UTC ( [id://11129852]=note: print w/replies, xml ) Need Help??


in reply to Point plotting

Hello BernieC,

I'm absolutely not an expert, but I recently used GD and it offers $image->setPixel($x,$y,$color) that seems what you are looking for.

I had not good experience in the past with Image::Magick because was nearly impossible to install correctly under windows, so I cant say anything about it.

Being a GUI programmer (not a professional, only sometimes) I have always the temptetion to use Prima: it ships with Prima::Drawable which has the pixel method. See a huge, recent guide by the author at prima.eu.org. This project wa connected (same author, same site) with the IPA - Image Processing Algorithms you can find interesting.

I will be glad to see your progresses so, if you have the time, please share them :)

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Point plotting -- GD and Prima
by BernieC (Pilgrim) on Mar 17, 2021 at 23:49 UTC
    I noticed that GD has "setpixel". When I was SVG hacking I just made a big-enough "canvas" and it all worked fine, I was thinking I could do that same with GD: give it, say, a 1000x1000 canvas and then use setPixel to do the "drawing" Thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found