---
title: "DjvuRaster"
url: "https://reference.aspose.com/imaging/java/com.aspose.imaging.fileformats.djvu/djvuraster/"
product: "Aspose.Imaging for Java API Reference"
description: "Class for representing Djvu raster image where located result of some operation"
---

**Inheritance:**
java.lang.Object, [com.aspose.imaging.DisposableObject](../../com.aspose.imaging/disposableobject), [com.aspose.imaging.DataStreamSupporter](../../com.aspose.imaging/datastreamsupporter), [com.aspose.imaging.Image](../../com.aspose.imaging/image), [com.aspose.imaging.RasterImage](../../com.aspose.imaging/rasterimage), [com.aspose.imaging.RasterCachedImage](../../com.aspose.imaging/rastercachedimage)
```
public final class DjvuRaster extends RasterCachedImage
```

Class for representing Djvu raster image where located result of some operation
## Constructors

| Constructor | Description |
| --- | --- |
| [DjvuRaster(int width, int height, IRasterImageArgb32PixelLoader loader)](#DjvuRaster-int-int-com.aspose.imaging.IRasterImageArgb32PixelLoader-) | Initializes a new instance of the `DjvuRaster` class. |
## Methods

| Method | Description |
| --- | --- |
| [getWidth()](#getWidth--) | Gets the width. |
| [getHeight()](#getHeight--) | Gets the height. |
| [getBitsPerPixel()](#getBitsPerPixel--) | Gets the image bits per pixel count. |
| [getLength()](#getLength--) | Gets the length. |
### DjvuRaster(int width, int height, IRasterImageArgb32PixelLoader loader) {#DjvuRaster-int-int-com.aspose.imaging.IRasterImageArgb32PixelLoader-}
```
public DjvuRaster(int width, int height, IRasterImageArgb32PixelLoader loader)
```


Initializes a new instance of the `DjvuRaster` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| width | int | The width. |
| height | int | The height. |
| loader | [IRasterImageArgb32PixelLoader](../../com.aspose.imaging/irasterimageargb32pixelloader) | The loader. |

### getWidth() {#getWidth--}
```
public int getWidth()
```


Gets the width.

Value: The width.

**Returns:**
int
### getHeight() {#getHeight--}
```
public int getHeight()
```


Gets the height.

Value: The height.

**Returns:**
int
### getBitsPerPixel() {#getBitsPerPixel--}
```
public int getBitsPerPixel()
```


Gets the image bits per pixel count.

Value: The image bits per pixel count.

**Returns:**
int
### getLength() {#getLength--}
```
public int getLength()
```


Gets the length.

Value: The length.

**Returns:**
int
