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, July 8, 2015 3:16:09 AM(UTC)
nbozovic

Groups: Registered
Posts: 24


Hi,

I was looking for any example how to set up Alpha blending, even only to emulate alpha blending behaviour would be great.
And closest I've got was to use ImageAttributes.SetKeyColor

unfortunetly following line has no effect at all:
pic.ImageAttributes.SetColorKey(Color.FromArgb(0, 0, 0), Color.FromArgb(240, 240, 240));
this should get barelly visible image.

Need to allow movement of image with semi transparency inside RasterViewer,
so I could get coordinates and angle of AnnPicture after user makes position.

Is there any simpler way I can do this in RasterViewer?


thank you
and best regards
 

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 : Thursday, July 9, 2015 4:26:39 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Please answer the following questions:
- Which version of LEADTOOLS are you using?
- Which annotations assembly (e.g. Leadtools.Annotations.Core) , because in some versions we have 2 different annotation implementations.
- Do you mean you want to display the image with partial transparency (translucent)?
If yes, and you are using v19 Leadtools.Annotations.Core, you can do this using the AnnObject.Opacity property. You can find more information here:
https://www.leadtools.com/help/leadtools/v19/dh/ac/wleadtools.annotations.core~leadtools.annotations.core.annobject~opacity.html

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Friday, July 10, 2015 12:34:07 AM(UTC)
nbozovic

Groups: Registered
Posts: 24


- We are using Leadtools PACS and Imaging version 17.5
- Assembly "Leadtools.Annotations" low level with AnnAutomationManager
- Yes translucency. The idea is to have several images that can be independently moved, or rotated, with mouse to match pattern on other images.
Similar like in photoshop when you have several layers with opacity set to let’s say 75%.

Unfortunately we are using 17.5, and in help opacity yield result only on AnnBrush class.

We were wondering could there be some approach to introduce Alpha channel (per pixel opacity) in bitmap with all pixels opacity set to 75%.
And convert this bitmap to RasterImages that can be displayed as Annotation object (floating object that can be moved) that is translucent.

 
#4 Posted : Sunday, July 12, 2015 12:47:55 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

You can find a v17.5 C# .NET sample project for implementing an AnnAlphaImage object, which allows alpha blending of image annotations here:
http://support.leadtools.com/SupportPortal/CS/forums/39942/ShowPost.aspx

Thanks,
Maen Badwan
LEADTOOLS Technical Support

 
#5 Posted : Monday, July 13, 2015 12:01:13 AM(UTC)
nbozovic

Groups: Registered
Posts: 24


thanks a lot
that was exactly what I was looking for
 
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.072 seconds.