0
Votes
Undo
  1. marco gaspar
  2. PowerBuilder
  3. Tuesday, 12 September 2023 12:16 PM UTC

Good morning!
I would like to know how to zoom in on an image in the userobject component, or
Set an image from the blob database in a datawindow.

Grateful.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 12 September 2023 12:25 PM UTC
  2. PowerBuilder
  3. # 1

Hi Marco;

  FWIW: in the past, I've built Apps with images inside a DataWindow as the DWO's are completely zoomable. HTH

Regards ... Chris 

Comment
There are no comments made yet.
marco gaspar Accepted Answer Pending Moderation
  1. Tuesday, 12 September 2023 12:35 PM UTC
  2. PowerBuilder
  3. # 2

Excellent,
How do I set it when it comes from the bank?
Example:
SELECTBLOB img_assinatura
INTO :lb_assin
dw_3.Object.datawindow.AddPicture(lb_assin)
dw_3.Object.datawindow.SetPicture(lb_assin)

But it's not working.

Grateful.

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 12 September 2023 12:41 PM UTC
Correct ... that won't work.

After the SelectBlob, you need to write the image contents to a file. Then assign the external path/file of the image file to the picture control / column that you wish to have it displayed.

The other alternative is to use a TableBlob based DWO approach.
  1. Helpful
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Tuesday, 12 September 2023 19:34 PM UTC
  2. PowerBuilder
  3. # 3

You can also display an image in a web browser control which would make it much easier to resize or even open an external browser.  Be careful if there's any confidential info displayed, you will need to clean up the data files after you use them.

Comment
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.