Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: How to make the Floaterimage transparent
Started by Gunasekaran at 11-05-2008 8:14. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  11-05-2008, 8:14
Gunasekaran is not online. Last active: 12/18/2008 10:19:22 AM Gunasekaran



Top 25 Posts
Joined on 05-07-2008
Chennai,India
Posts 174
How to make the Floaterimage transparent
Reply Quote
Hi,

I am working the Rasterimageviewer to display layered images. I would highly appreciate if you send us sample code on how to make the floaterimage transparent  in order to see the layered images.

thanks & regards



Thanks and Regards
Guna
   Report 
  11-05-2008, 11:01
Adam Boulad is not online. Last active: 1/6/2009 1:25:47 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 540
Re: How to make the Floaterimage transparent
Reply Quote
I'm afraid that you can't do this with the Floaterimage. You might be able to do this if you use Stamp Annotation object and set a transparent color.
Adam Boulad
LEADTOOLS Technical Support

   Report 
  11-11-2008, 6:03
Gunasekaran is not online. Last active: 12/18/2008 10:19:22 AM Gunasekaran



Top 25 Posts
Joined on 05-07-2008
Chennai,India
Posts 174
Re: How to make the Floaterimage transparent
Reply Quote
thanks for the reply. I would like to reduce the opacity by 50% in the floaterimage or annpicture object. would highly appreciate if you send us any workaround.

thanks

Thanks and Regards
Guna
   Report 
  11-11-2008, 7:39
Gunasekaran is not online. Last active: 12/18/2008 10:19:22 AM Gunasekaran



Top 25 Posts
Joined on 05-07-2008
Chennai,India
Posts 174
Re: How to make the Floaterimage transparent
Reply Quote

I tried to add an annotationstamp object to get the result like the following. But it seems that the imageattributes property of the annpicture object is readonly. I am not sure that whether that is one doesn't allow me get the opacity of the image. If you can provide some workaround or a patch it would be veryuseful.

    RasterImageViewer2.Image = codecs.Load("d:\\4002.jpg")

        Dim stamp As AnnStampObject = New AnnStampObject
        Dim pic As New AnnPicture(Image.FromFile("D:\\327.bmp"))
        pic.TransparentMode = AnnPictureTransparentMode.UseColor
        pic.TransparentColor = Color.Black

        Dim ia As Imaging.ImageAttributes = pic.ImageAttributes
        Dim cmxPic As Imaging.ColorMatrix = New Imaging.ColorMatrix()
        cmxPic.Matrix33 = 128

        'Dim iaPic As Imaging.ImageAttributes = New Imaging.ImageAttributes()
        ia.SetColorMatrix(cmxPic, Imaging.ColorMatrixFlag.Default, Imaging.ColorAdjustType.Bitmap)
        Dim gfxPic As Graphics = Graphics.FromImage(pic.Image)
        gfxPic.DrawImage(pic.Image, New Rectangle(0, 0, pic.Image.Width, pic.Image.Height), 0, 0, pic.Image.Width, pic.Image.Height, GraphicsUnit.Pixel, ia)
        gfxPic.Dispose()




Thanks and Regards
Guna
   Report 
  11-11-2008, 10:10
Adam Boulad is not online. Last active: 1/6/2009 1:25:47 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 540
Re: How to make the Floaterimage transparent
Reply Quote
Guna,
Currently, we do not have such a method to allow opacity with stamp annotation object, we only have the ability to provide transparent color.
We do have, however, a feature request regarding this (using stamp annotation with opacity) but this is not implemented yet, and we don't know if it will be added nor when.
I will update this forum post when this incident is available and if you want to be personally notified when this feature is available, send an email to support@leadtools.com and ask to be added to the feature's notification list for request number 7424AMN
Adam Boulad
LEADTOOLS Technical Support

   Report 
  12-05-2008, 6:36
Gunasekaran is not online. Last active: 12/18/2008 10:19:22 AM Gunasekaran



Top 25 Posts
Joined on 05-07-2008
Chennai,India
Posts 174
Status of the feature 7424AMN
Reply Quote
Hi,

We Would like to know the status of the feature whether it has been added.

Thanks & regards


Thanks and Regards
Guna
   Report 
  12-05-2008, 15:19
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,811
Re: Status of the feature 7424AMN
Reply Quote
There is no update for this feature request at this time.  If chosen for implementation, most feature requests are added at major releases (16, 17 etc.).

If this is an urgent need, please contact our custom development department by visiting http://www.leadtools.com/devservices/ for a quote.

As a workaround, you would need to use the FeatherAlphaBlendCommand class to combine an image on top of another with alpha transparency.  If you want to drag it around, you will need to handle the mouse events and re-combine the original background image and the foreground alpha blended image. 

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » Image Processin... » Re: How to make the Floaterimage transparent

Powered by Community Server, by Telligent Systems