1. Roland Smith
  2. PowerBuilder
  3. Friday, 8 April 2022 15:41 PM UTC

I have code to capture windows/controls to a bitmap.

I am wondering if there is a way to capture the entire DataWindow, not just the part currently visible. It has been said since the early days that the DataWindow is displayed as a bitmap with editable controls superimposed. I want to know how to get the internal bitmap handle. If the bitmap only contains the visible portion, getting the internal handle wouldn't help.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 8 April 2022 15:52 PM UTC
  2. PowerBuilder
  3. # 1

Hi Roland;

   That functionality is not supported currently that I know of. However, the technique that I haved before for this is to use an intermediate medium like a PDF. Then once the PDF is rendered, you could use ImageMagicK (or GraphicsMagick - both free & open source) to then render the PDF in an image format. I have done this before very successfully. Food for thought.

FYI:  https://legacy.imagemagick.org/discourse-server/viewtopic.php?t=18193

HTH

Regards ... Chris

Comment
  1. Roland Smith
  2. Friday, 8 April 2022 17:18 PM UTC
That would probably work. I tried saving as EMF! or WMF! but the fonts used are wrong and the EMF is unreadable.

If there were a SaveAsType for PNG, JPG, or BMP then it would be simple.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 8 April 2022 17:42 PM UTC
Hmmm ... I smell an enhancement request coming! ;-)
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.