Welcome to LEAD Support Forum Login | Register | Faq  

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

Problem with RasterImage.CalculatePaintModeRectangle
Started by Afnman at 11-11-2008 10:08. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  11-11-2008, 10:08
Afnman is not online. Last active: 12/10/2008 12:31:39 PM Afnman

Not Ranked
Joined on 11-11-2008
Posts 4
Problem with RasterImage.CalculatePaintModeRectangle
Reply Quote
Greetings,
 I am using Leadtools 15 and .NET libraries.

My code is something like that:

 RasterCodecs::Startup();
 DicomEngine::Startup();
  RasterCodecs ^ codecs= gcnew RasterCodecs();
  Image=codecs->Load("I000387");

  DestRect.X =100;
  DestRect.Y =100;
  DestRect.Width = 700;
  DestRect.Height =700;

ImageRect=RasterImage::CalculatePaintModeRectangle(512,512, this->DestRect, RasterPaintSizeMode::Normal, RasterPaintAlignMode::CenterAlways, RasterPaintAlignMode::CenterAlways);

The Results are: 

ImageRect.X= 94
ImageRect.Y= 94 ....     Arent these  values wrong??
ImageRect.Width=512
ImageRect.Height=512

Any  values ClipRect.X and ClipRect.Y i had used, CalculatePaintModeRectangle always returned same Rectangle.
I think it ignores X,Y position of Destination Rectangle..... why is that??





   Report 
  11-11-2008, 10:52
Adnan Ismail is not online. Last active: 1/6/2009 4:12:02 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,364
Re: Problem with RasterImage.CalculatePaintModeRectangle
Reply Quote
Can you isolate the problem you have and put your code in a very small test project (not your full application)?

If you want to send the project please make sure to put it in a ZIP or RAR file. If you do not want to post it here, you can send it to support@leadtools.com and mention this post.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Image Display » Problem with RasterImage.CalculatePaintModeRectangle

Powered by Community Server, by Telligent Systems