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

Notification

Icon
Error

Options
Go to last post Go to first unread
Noufal123  
#1 Posted : Friday, May 20, 2011 2:33:19 AM(UTC)
Noufal123

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....
Dmitry.Obukhov  
#2 Posted : Friday, May 20, 2011 11:17:42 PM(UTC)
Dmitry.Obukhov

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.
Noufal123  
#3 Posted : Saturday, May 21, 2011 8:33:04 PM(UTC)
Noufal123

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

Dmitry.Obukhov  
#4 Posted : Tuesday, May 24, 2011 1:51:35 AM(UTC)
Dmitry.Obukhov

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.
Users browsing this topic
Guest
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.