LEADTOOLS Support
Imaging
Imaging SDK Questions
How to add rectangle to an image in Powerbuilder
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, August 1, 2007 11:39:30 AM(UTC)
Groups: Registered
Posts: 2
Hello,
What commands should I be using If I want to cover an image opened in my ole control with a rectangle? For security reasons, certain users should not be able to see some images - but I still want to display them - just basically hide or cover them with rectangle.
I use Leadtools 14.5 and my ole is Lead Main Control 14.0.
Thanks a lot in advance for any hints,
Srechko
#2
Posted
:
Saturday, August 4, 2007 11:55:41 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
You can try to use LEAD1.DrawRectangle method to draw a rectangle on the screen or on the bitmap. The DrawPersistence property determines whether the object is drawn on the screen or the bitmap.
For example, the following code shows how to draw a red rectangle on the bitmap:
--------------------------
LEAD1.Load "D:\testing\Ann.jpg", 0, 0, 1
LEAD1.DrawFillColor = vbRed
LEAD1.DrawMode = DRAWMODE_COPY_PEN
LEAD1.DrawFillStyle = DRAWFILLSTYLE_SOLID
LEAD1.DrawPersistence = True 'On the window, not the bitmap
LEAD1.DrawRectangle 0, 0, LEAD1.BitmapWidth, LEAD1.BitmapHeight
--------------------------
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
Imaging
Imaging SDK Questions
How to add rectangle to an image in Powerbuilder
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.