## Unit.FromPixels method

Returns a [`Length`](../../length/) object that is represented in pixels.

```csharp
public static Length FromPixels(double value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | Double | The value. |

### Return Value

Returns a [`Length`](../../length/) object.

### See Also

* class [Length](../../length/)
* class [Unit](../)
* namespace [Aspose.Html.Drawing](../../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../../)
