11-11-2008, 10:08
|
Afnman
Joined on 11-11-2008
Posts 4
|
Problem with RasterImage.CalculatePaintModeRectangle
|
 
 
|
|
|
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
|
|
|
|