Menu

Draw( or load an image) on desktop?

2009-10-13
2012-09-26
  • I am learning

    I am learning - 2009-10-13

    I want to draw, or load an image( PNG format) without making a form, how to do
    that?
    ( I want to make a flying picture on desktop- round shape)
    Thank you very much!

     
  • cpns

    cpns - 2009-10-16

    You can get a device context for the "whole screen" and draw
    directly to it, but that is probably not what you want, since your process
    does not 'own' that device context and will not get notification when portions
    are invalidated and need to be painted.

    The solution is to create a window with no border and transparent properties.
    The windows will of course be rectangular, but since it will also be
    invisible, its shape will appear ot be whatever shape you choose to draw on
    it.

    You can make a window transparent by setting its colour and the 'transparent
    key' to the same value.

    Clifford

     
  • I am learning

    I am learning - 2017-03-24

    Dear Clifford, it's ~8 years, and I still remember how helful you were. I always want to say "Thank you" to you, but I can't find any of your blog or email (sourceforge does not allow me to pm you, also). I noticed that you have no activities on this forum from 2010, so not sure if this message can come to you.

     

Log in to post a comment.