Results 1 to 2 of 2

Thread: Draw on StdPicture objects

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Lightbulb Draw on StdPicture objects

    I'm not sure why you might need this, but this example shows how you can draw onto a StdPicture (type of bitmap only). Works whether currently assigned to a control or freestanding, such as loaded via LoadPicture().

    The demo uses GDI calls by using the IPicture interface's SelectPicture() method to open/close the picture for drawing operations.

    This demo doesn't show it, but it can also be used to draw to the persistent bitmap (Image property) of a Form, UserControl, or PictureBox while AutoRedraw = False. However it does show drawing to an Image control's Picture property.

    Once again: these can't be icons or metafiles, only bitmaps.
    Attached Files Attached Files
    Last edited by dilettante; Sep 26th, 2021 at 01:55 PM. Reason: typos

  2. #2
    Lively Member
    Join Date
    Mar 2015
    Posts
    104

    Re: Draw on StdPicture objects

    Thankyou for the nice sample code. Was wondering if it could be used to add draw opaque/transparent lines and text?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width