Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
NormanL  
#1 Posted : Thursday, February 28, 2013 10:33:26 AM(UTC)
NormanL

Rank: Advanced Member

Groups: Member
Joined: 4/26/2012(UTC)
Posts: 36

Thanks: 6 times
Hi,

I have a CanvasViewer with a number of layers on it (one that holds an image, another for text etc.).

Is there a way to export just one of layers as an image, for example only the image layer and not the text layer?

Thanks
vitaly  
#2 Posted : Thursday, February 28, 2013 8:43:50 PM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Hello NormanL,

You can remove text layer (or any else) from canvas like this:
Code:

var textLayer = CanvasViewer.Canvas.Layers.GetLayersByName(textLayerName).FirstOrDefault();
if (textLayer != null)
	CanvasViewer.Canvas.Layers.Remove(textLayer);

float dpi = 96;
ColorSpace colorSpace = ColorSpace.Rgb;

Aurigma.GraphicsMill.Bitmap b = CanvasViewer.Canvas.RenderWorkspace(dpi, colorSpace);


I hope it helps.
Best regards,
Vitaly Kustov
Aurigma Technical Support
NormanL  
#3 Posted : Friday, March 1, 2013 3:35:32 AM(UTC)
NormanL

Rank: Advanced Member

Groups: Member
Joined: 4/26/2012(UTC)
Posts: 36

Thanks: 6 times
Hi Vitaly,

Thanks. Hiding them works as well (as I may need to restore them).
vitaly  
#4 Posted : Sunday, March 3, 2013 8:18:49 PM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
NormanL,

Feel free to contact me if you have any additional questions.
Best regards,
Vitaly Kustov
Aurigma Technical Support
Users browsing this topic
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.