Rank: Advanced Member
Groups: Guest
Joined: 3/29/2010(UTC) Posts: 81
Thanks: 10 times
|
Hi, How can i set background image to Bitmapviewer and MultilayerViewer? I have used code
Bitmapviewer1.BackgroundImage=Image.FromFile("C:\\Orange.jpg"); Bitmapviewer1.BackgroundImageLayout = ImageLayout.Tile; Bitmapviewer1.Refresh();
but its not working ..pls help me soon....
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello, Please use this code: Code:
//To set background image for bitmap viewer
bitmapViewer1.Bitmap.Load("c://1.jpg");
//To set background for multilayer viewer:
Aurigma.GraphicsMill.Bitmap img = new Aurigma.GraphicsMill.Bitmap("c://1.jpg");
Aurigma.GraphicsMill.WinControls.ImageVObject imgv = new Aurigma.GraphicsMill.WinControls.ImageVObject(img, true, 0, 0);
multiLayerViewer1.Layers[0].VObjects.Add(imgv);
imgv.Locked = true;
Edited by user Friday, May 20, 2011 11:18:14 PM(UTC)
| Reason: Not specified |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/29/2010(UTC) Posts: 81
Thanks: 10 times
|
Thanx for your reply.. actually i need to set background image of control... ("Bitmapviewer1.BackgroundImage" and "Multilayerviewer1.BackgroundImage" properties...) pls help me.. Edited by user Saturday, May 21, 2011 8:35:58 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello,
Unfortunately, BackgroundImage is not supported for Aurigma bitmap viewer and multilayer viewer. You need to use only way I offered in my previous post. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Forum Jump
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.