This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Set image size in multilayerViewer

Hi......... I am doing project in c#(win application) with aurigma graphicmills.. In this, add image to Multilayerbitmapviewer as object directly with out resize the image.But the image size is big, and the image sides are outside multilayerworkspace..1) can i able to add image with in the workspace with out resize image and multilayerviewer workspace ?

Hello,

Sure, you are able to add image, which could be scaled before adding in the workspace. To implement this functionality I used Scale property of Transform class.
I created simple application, which allows doing it. I attached it for your reference. Please download and try it out.

If you have any additional questions about this sample, please feel free to let me know.
Hi.. Can i able to set image in multilayerviewer with multilayer workspace width and height..? actually, i wana adjust image width and height, and fit in multilayer workspace...pls help me quick..
Hello Noufal,

I attached new sample application for your reference. It allows adding images of any sizes, which will become workspace size.

Please download and try it out. Let me know, if you have any additional questions or problems.
Hi... I have merged the same thing in my project ,but its not fit multilayer viewer correctly...


Hello,

I recreated sample. Now the image has width and height of workspace. Please try it out and let me know whether it is fit for you.
Hello.. I am adding one object in each layer(ie, when the object add , create a new layer and add the object). I wana to change the layer name same as the object name .
Hello,

You are able to set layer name the same as object name. Please see this sample line sample:

multiLayerViewer1.Layers[0].Name = rectangle.Name.ToString();

Let me know if you have any additional questions.