---
title: "PsdFrameExtensions.ToGraphicsContainer Method (PsdSmartFrame, GraphicsContainer, ResizeMode, InterpolationMode)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Templates_PsdFrameExtensions_ToGraphicsContainer_4_8b2798f8.htm
product: "Graphics Mill"
---

# PsdFrameExtensions.ToGraphicsContainer Method (PsdSmartFrame, GraphicsContainer, ResizeMode, InterpolationMode)
 
Converts a PSD smart frame to a graphics container, using the given graphics container as the content of the smart object.
 
**Namespace:** [Aurigma.GraphicsMill.Templates](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Templates.htm.md)
 **Assembly:** Aurigma.GraphicsMill.Templates (in Aurigma.GraphicsMill.Templates.dll)
 
## Syntax
  
```csharp
public static GraphicsContainer ToGraphicsContainer(this PsdSmartFrame smartFrame,GraphicsContainer content,ResizeMode resizeMode,InterpolationMode interpolationMode
)
```
 
### Parameters
 
 - smartFrame
     - Type: [Aurigma.GraphicsMill.Codecs.Psd.PsdSmartFrame](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_Psd_PsdSmartFrame.htm.md)
The PSD smart frame to convert.

 - content
     - Type: [Aurigma.GraphicsMill.Drawing.GraphicsContainer](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_GraphicsContainer.htm.md)
The [GraphicsContainer](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_GraphicsContainer.htm.md) that replaces the content of the smart object.

 - resizeMode
     - Type: [Aurigma.GraphicsMill.Transforms.ResizeMode](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_ResizeMode.htm.md)
The resize mode.

 - interpolationMode
     - Type: [Aurigma.GraphicsMill.Transforms.InterpolationMode](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_InterpolationMode.htm.md)
The interpolation mode. The default value is [High](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_InterpolationMode.htm.md).
 
### Return Value
A [GraphicsContainer](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_GraphicsContainer.htm.md) instance.
   
## See Also

### Reference

- [PsdFrameExtensions Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Templates_PsdFrameExtensions.htm.md)
- [ToGraphicsContainer Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Templates_PsdFrameExtensions_ToGraphicsContainer.htm.md)
- [Aurigma.GraphicsMill.Templates Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Templates.htm.md)
