| 
Rank: Advanced Member
 Groups: Guest
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
 | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
         
		   
        
            
            
	
    | 
Rank: Advanced Member
 Groups: Guest
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
 | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
    
		
        
            
            
	
    | 
Rank: Advanced Member
 Groups: Guest
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).
 | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
         
		   
        
            
            
	
    | 
Rank: Advanced Member
 Groups: Guest
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
 | 
	
    | 
             | 
            
         | 
    |  | 
        
        
        
    
    
        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.