## Unit.FromPixels method

Returns a [`Length`](../../length/) object that is represented in pixels.

```java
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](../)
* package [com.aspose.html.drawing](../../../com.aspose.html.drawing/)
* package [Aspose.HTML](../../../)
