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 : Friday, February 29, 2008 8:35:08 AM(UTC)

mbsiehs  
mbsiehs

Groups: Registered
Posts: 28


I have a class that extends RasterMagnifyGlass whose purpose is to redraw the portion of the image covered by the RasterMagnifyGlass with a greater PaintIntensity than normal (essentially, a flashlight).  The control has worked in the past, but for some reason it is no longer working.  It works by overriding the OnPaintImage() method of RasterMagnifyGlass and do the following:

1.    Define the region to be painted by creating the appropriate GraphicsPath (in this case, a circle around the current mouse position).
2.    Set local variables to hold Viewer.Image.PaintIntensity, Viewer.Image.PaintContrast and Viewer.Image.PaintGamma
3.    Set the same three Viewer.Image properties to whatever I want on the flashlight.
4.    Set the clip of the Graphics object (argument to OnPaintImage()) to the previously defined GraphicsPath.
5.    Call Viewer.Image.Paint() with the Graphics path with the clip set.
6.    Reset the three Viewer.Image properties to what they were before I started.

I also call DisableEvents() and EnableEvents() before and after I set the three major Image properties.

Sometime in the past six months this has broken without the file being touched.  I imagine this is a pretty common functionality – any thought as to why?

Thanks for your time.
Matt

Leadtools.WinForms 15.0.0.15
.NET 2.0

 

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 : Sunday, March 2, 2008 3:54:04 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

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


Did you re-download the toolkit or obtain new patches recently?


If you had certain functionality working with an older
build of LEADTOOLS and it stopped working with the latest patches, please send
us a small test harness (not your full application) that shows this functionality and we will check it and possibly report it to our engineers.
 
#3 Posted : Tuesday, March 4, 2008 3:52:55 AM(UTC)

mbsiehs  
mbsiehs

Groups: Registered
Posts: 28


Thanks for the quick reply.

I have downloaded a recent version of the toolkit, but I'm not convinced that I didn't alter a dependency or something like that outside of the Flashlight file which renders the Flashlight object ineffective.  The Flashlight file is the original file.

Attached is a sample C# app to demonstrate what I'm trying to do.  I've removed the Leadtools dlls, but those that need to be added to the project (and their version) are listed below.  Again, the idea is to extend magnify glass so that I can redraw just the Region identified by the path.  The interesting thing is that if I set the RasterImageViewer's Image.PaintIntensity to 500 when the image is loaded from disk, the Flashlight (which has brightness of 500) will work, but with a brightness of 0.

I have also attached an X-Ray (R3.bmp) for viewing.

Thanks again for your time.
Matt

Leadtools.Codecs.Bmp.dll (15.0.0.2)
Leadtools.Codecs.Cmp.dll (15.0.0.3)
Leadtools.Codecs.dll (15.0.0.18)
Leadtools.dll (15.0.0.32)
Leadtools.Winforms.CommonDialogs.File.dll (15.0.0.13)
Leadtools.Winforms.dll (15.0.0.15)
File Attachment(s):
FlashlightDemo.zip (1,672kb) downloaded 21 time(s).
 
#4 Posted : Wednesday, March 5, 2008 5:48:36 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

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

I have received your files and currently testing the issue. I will get back to you as soon as possible with my results.

 
#5 Posted : Thursday, March 6, 2008 6:41:29 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

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

I checked your
project and saw that the paint properties are not being taken into
consideration when drawing the clipped area. I tried to find a workaround by
using a secondary RasterImageViewer, but so far it didn't work. I will try some more and either send you a solution, or report it our engineers.
 
#6 Posted : Sunday, March 9, 2008 6:08:33 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

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

I have reported this issue to our engineers under incident number 6755AMN. If you would like to ask about the status in the future please refer to the incident number. I will also notify you as soon as out engineers address the issue.

 
#7 Posted : Tuesday, March 11, 2008 2:54:18 AM(UTC)

mbsiehs  
mbsiehs

Groups: Registered
Posts: 28


Thanks for the update and for looking into this for me.

Matt
 
#8 Posted : Monday, June 23, 2008 5:55:11 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

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

Incident 6755AMN has been marked as not a bug. Our engineers added that this is a limitation when using RasterPaintEngine.GdiPlus.  You should use RasterPaintEngine.GdiPlus2 and the problem will not appear.
 
#9 Posted : Tuesday, June 24, 2008 10:40:11 AM(UTC)

mbsiehs  
mbsiehs

Groups: Registered
Posts: 28


Thanks.  That worked.

Matt
 
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.167 seconds.