Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, September 28, 2006 1:15:13 PM(UTC)


Groups: Registered
Posts: 2

I'm trying to resize the canvas of an image.  As in, I don't want to resize the actual image, but I want to increase the canvas size and have a black border around my image.  Like in photoshop when you use the canvas size command.  I can't seem to figure this out for some reason.

I'm using raster image pro .Net 14.5.



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 : Saturday, September 30, 2006 10:34:52 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

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


You may try to do something like the resize canvas by using the following code (LEADTOOLS .Net) :
//1. Resize the image viewer
rasterImageViewer1.Size = new Size(1000,1000);
//2. Center the image on the viewer
rasterImageViewer1.CenterMode = Leadtools.WinForms.RasterViewerCenterMode.Both;

Please let me know if this helps.

Maen Badwan
LEADTOOLS Technical Support
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.065 seconds.