Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, August 1, 2007 11:39:30 AM(UTC)

Srechko  
Srechko

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

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Saturday, August 4, 2007 11:55:41 PM(UTC)
Maen Hasan

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

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.056 seconds.