ImageWin Dib draw usage?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ilariu Raducan

    #1

    ImageWin Dib draw usage?


    Hi All,

    Does anybody has experience working with ImageWin.Dib.dr aw?
    I tried to use it to draw in a window in the rectangle return from
    GetClipBox().
    I use the same rectangle for source and destination and the result is a
    bit strange: a different region from the one expected is displayed.
    I have looked at the PIL source code. The windows API function used
    there in StretchBlt. Should that be StretchDIBits?

    Regards,
    Lale

  • D. Rush

    #2
    Re: ImageWin Dib draw usage?

    You can find some example of ImageWin usage gere:
    Synopsys delivers comprehensive silicon-to-systems solutions that help innovators accelerate development, reduce risk, and drive breakthroughs.


    And of course the source - if that's helpful:



    Alsom
    "Ilariu Raducan" <lale@fotonatio n.com> wrote in message
    news:eDjKa.1993 4$pK2.29161@new s.indigo.ie...[color=blue]
    >
    > Hi All,
    >
    > Does anybody has experience working with ImageWin.Dib.dr aw?
    > I tried to use it to draw in a window in the rectangle return from
    > GetClipBox().
    > I use the same rectangle for source and destination and the result is a
    > bit strange: a different region from the one expected is displayed.
    > I have looked at the PIL source code. The windows API function used
    > there in StretchBlt. Should that be StretchDIBits?
    >
    > Regards,
    > Lale
    >[/color]


    Comment

    • Fredrik Lundh

      #3
      Re: ImageWin Dib draw usage?

      D. Rush wrote:
      [color=blue]
      > And of course the source - if that's helpful:
      > http://www.koders.com/python/fidF6C5...spx?s=ImageWin[/color]

      # The Python Imaging Library.
      # $Id: ImageWin.py,v 1.1 2000/05/24 13:29:09 stig Exp $

      who's stig?

      </F>



      Comment

      • Andrew Dalke

        #4
        Re: ImageWin Dib draw usage?

        Fredrik Lundh wrote:[color=blue]
        > # The Python Imaging Library.
        > # $Id: ImageWin.py,v 1.1 2000/05/24 13:29:09 stig Exp $
        >
        > who's stig?
        >
        > </F>[/color]

        Looks like that PIL is used by "SDS - A framework
        for developing software development tools."

        Specifically, sds/sds/sds/src/python/chartgen/pil/
        in the directory tree that come from clicking on that
        little folder.

        That also leads to http://sourceforge.net/projects/sds
        which has developer info for 'stig'.
        http://sourceforge.net/users/stig/
        and the above CVS repository, at
        Download Software Development Foundation for free. A framework for developing software development tools.


        Untouched for over 4 years.

        Andrew
        dalke@dalkescie ntific.com

        Comment

        Working...