---
title: "CustomFrame..::.InitializeCustomFrameTU Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_CustomFrame_InitializeCustomFrameTU_9_c330b6d2.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# CustomFrame.InitializeCustomFrameTU Method 
 
Initializes the frame with provided settings.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub InitializeCustomFrameTU ( _name As String, _left As Integer, _top As Integer, _width As Integer, _height As Integer, _pixelFormat As PixelFormat, _horizontalResolution As Single, _verticalResolution As Single, _colorProfile As ColorProfile _
)
```
 
```csharp
public void InitializeCustomFrameTU(string name,int left,int top,int width,int height,PixelFormat pixelFormat,float horizontalResolution,float verticalResolution,ColorProfile colorProfile
)
```
 
### Parameters
 
 - name
     - Type: [System.String](http://msdn2.microsoft.com/en-us/s1wwdcbf)
Frame name.

 - left
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
X-coordinate of the left top corner of the frame (in pixels).

 - top
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Y-coordinate of the left top corner of the frame (in pixels).

 - width
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Frame width.

 - height
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Frame height.

 - pixelFormat
     - Type: [Aurigma.GraphicsMill.PixelFormat](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_PixelFormat.htm.md)
Pixel format for the frame bitmap.

 - horizontalResolution
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Horizontal resolution of the frame bitmap.

 - verticalResolution
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Vertical resolution of the frame bitmap.

 - colorProfile
     - Type: [Aurigma.GraphicsMill.ColorProfile](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorProfile.htm.md)
Frame color profile.
 
## Remarks
  
This method should be called from the [LoadFrameParameters()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_CustomFormatReader_LoadFrameParameters.htm.md).
 
Use protected thread-unsafe versions of **xxxTU** properties instead of the public ones (without **TU** postfix) inside of the code of your custom codec. You should use to avoid deadlocks during multithreaded calls.
   
## See Also

### Reference

- [CustomFrame Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CustomFrame.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
- [CustomFormatReader.LoadFrameParameters()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_CustomFormatReader_LoadFrameParameters.htm.md)
