Drawing a grid on a picture

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jive Dadson

    #1

    Drawing a grid on a picture

    Hello folks. I know precisely zero about image processing. I want to
    draw a grid of lines one or two pixels wide on a picture (.jpg, .png, or
    whatever). [I want to transfer a sketch of the picture to a canvas (for
    oil painting), using the "grid method."]

    I figure this is probably a very easy thing to do, but I can't seem to
    find the documentation I need. It all seems to assume you already know
    something. I have wxPython installed. I also have the wxPython demo.
    The section "Using Images/Image" looked promising. It just shows how to
    read a picture and display it as a bitmap.

    Can someone show me how, or point me in the right direction?

    Thanks a lot.
  • Jive Dadson

    #2
    Re: Drawing a grid on a picture

    I also found a reference to something called PIL. Maybe that's the
    ticket. If so, where can I find it (with documentation)? Thanks.

    Comment

    • Brian Quinlan

      #3
      Re: Drawing a grid on a picture

      Jive Dadson wrote:
      I also found a reference to something called PIL. Maybe that's the
      ticket. If so, where can I find it (with documentation)? Thanks.
      The will likely do what you want. And you can find it the same way that
      you would find anything online i.e. with google. But here is the link:
      http://www.pythonware.com/products/pil/

      Cheers,
      Brian

      Comment

      • Jive Dadson

        #4
        Re: Drawing a grid on a picture

        Sybren Stuvel wrote:
        Jive Dadson enlightened us with:
        >I also found a reference to something called PIL. Maybe that's the
        >ticket. If so, where can I find it (with documentation)? Thanks.
        >
        Just google for PIL and Python.
        >
        Sybren
        Thanks Brian and Sybren. PIL did the trick. Real easy.


        Comment

        Working...