1. Rajkumar K S
  2. PowerBuilder
  3. Thursday, 28 October 2021 17:12 PM UTC

Hi,

Good day!

Kindly help me how to rotate the Picture control  or image in powerbuilder. Is there any way to rotate datawindow control or image control in powerbuiler.

Thanks 

Regards

Rajkumar K S

 

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Saturday, 30 October 2021 23:48 PM UTC
  2. PowerBuilder
  3. # Permalink

I created a picture control that supports rotate/flip:

https://www.topwizprogramming.com/freecode_canvas.html

It isn't a DataWindow picture control, a regular window control.

 

Comment
  1. Chris Pollach @Appeon
  2. Sunday, 31 October 2021 02:49 AM UTC
That's awesome Roland! You could still use a DWO though but process the image through your picture control (just hidden) to do the "work" and then transfer the image back to the DWO for zooming. ;-)
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 28 October 2021 17:47 PM UTC
  2. PowerBuilder
  3. # 1

PowerBuilder does not have this capability, but there are many utilities available that will rotate a graphics image stored in a variety of formats. The Paint utility in Windows 10 does this.

Comment
  1. John Fauss
  2. Friday, 29 October 2021 01:08 AM UTC
In PB Help, search on "datawindow object properties" on the Index tab, press Enter, Miguel. A selection dialog pops up. Choose the item listed as "DataWindow Object Properties". On that Help topic there are three different ways the information is presented.

Escapement is a sub-property of the Font property for a DW object that displays text.
  1. Helpful 1
  1. Miguel Leeuwe
  2. Friday, 29 October 2021 08:00 AM UTC
Thank you John! It's always been "an art" to find the correct information in the ever changing help files. (sometimes I go back to using the help file of 12.0, because I know the search string that will give me the correct information. In later version that might have changed).

regards.
  1. Helpful
  1. Miguel Leeuwe
  2. Friday, 29 October 2021 08:23 AM UTC
Nevertheless ... can't seem to find the "escapement" attribute being documented for picture nor inkpicure objects. This is what I mean when I say "no one seems to bother to complete the documentation on all attributes". I think I have an open ticket somewhere asking to update the Tool for dwsyntax.

Thanks anyway!

regards.
  1. Helpful
There are no comments made yet.
Rajkumar K S Accepted Answer Pending Moderation
  1. Friday, 29 October 2021 15:58 PM UTC
  2. PowerBuilder
  3. # 2

Hi Team, 

Please let me know if any solution for this picture rotate.

Regards

Rajkumar

Comment
  1. Chris Pollach @Appeon
  2. Friday, 29 October 2021 17:01 PM UTC
I would really recommend ImageMagicK for that. I have built entire imaging systems using that open source software to basically do any image manipulation / conversion that I needed (on the fly) by calling IM from both PB Apps, Appeon Web Apps and IIS Web Services. Then I used the DWO for image display purposes to support Zooming. Here is a presentation that I did on some of those PB Imaging Apps for a PB conference ...

http://sourceforge.net/projects/stdfndclass/files/Presentations/Imaging

HTH
  1. Helpful
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Saturday, 30 October 2021 15:52 PM UTC
  2. PowerBuilder
  3. # 3

" If you display any column as a picture, you can use the "Escapement" property to rotate the DWO's data elements "

this doesn't work for me, at least not in the IDE using dw preview using a jpg.  (PB2019R3 2703)

  1. use column name and display as picture option, it has font so escapement is an option but it does not rotate (text does, not pictures)
  2. use compute with bitmap function, it has font so escapement is an option but it does not rotate
  3. use picture control.  Picture currently has the most options (invert and original size) but not escapement.

 

Also miguel- chris said he was displaying column as a picture, not using picture/ink with escapement.  so documentation seems correct for those.

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.