07-22-2008, 12:16
|
jigar

Joined on 08-22-2007
Posts 356
|
Re: Veritical rotation (90 or 270) does not display correctly after any call to CreateGdiPlusGraphics
|
 
 
|
|
|
I forgot to mention a workaround. You can use a region to get a border effect. I would recommended this solution over using the GDI graphics because it can get nasty releasing Graphics objects and such.
int border = 20; // border size in pixels. Rectangle viewable = new Rectangle(border, border, _rasterImage.Width - (border * 2), _rasterImage.Height - (border * 2));
// Add border region. _rasterImage.AddRectangleToRegion(null, viewable, RasterRegionCombineMode.AndNotRegion);
// Fill the region with White color. FillCommand fillCmd = new FillCommand(); fillCmd.Color = new RasterColor(Color.White); fillCmd.Run(_rasterImage);
// Clear the region. _rasterImage.MakeRegionEmpty(); |
|
LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|