Table of Contents

Class DjvuPage

Namespace
Aspose.Imaging.FileFormats.Djvu
Assembly
Aspose.Imaging.dll

Djvu page class

public class DjvuPage : RasterCachedImage, IDisposable, IObjectWithBounds, IRasterImageArgb32PixelLoader, IRasterImageRawDataLoader, IHasXmpData, IHasMetadata, INotifyPropertyChanged
Inheritance
DjvuPage
Implements
Inherited Members

Properties

BitsPerPixel

Gets the image bits per pixel count.

public override int BitsPerPixel { get; }

Property Value

int

The image bits per pixel count.

Height

Gets the height of the page

public override int Height { get; }

Property Value

int

The height.

Image

Gets the image.

public DjvuRaster Image { get; }

Property Value

DjvuRaster

The image.

IsColor

Gets a value indicating whether this instance is color.

public bool IsColor { get; }

Property Value

bool

true if this instance is color; otherwise, false.

PageNumber

Gets the page number.

public int PageNumber { get; }

Property Value

int

The page number.

ParentImage

Gets the parent image the page belongs to

public DjvuImage ParentImage { get; }

Property Value

DjvuImage

The document.

ThumbnailImage

Gets or sets the thumbnail image for the page

public DjvuRaster ThumbnailImage { get; set; }

Property Value

DjvuRaster

The thumbnail image.

Width

Gets the width of the page

public override int Width { get; }

Property Value

int

The width.

Methods

ExtractThumbnailImage()

Extracts the thumbnail image from the Djvu page.

public DjvuRaster ExtractThumbnailImage()

Returns

DjvuRaster

The Djvu raster image.

GetBackgroundImage()

Gets the background image.

public DjvuRaster GetBackgroundImage()

Returns

DjvuRaster

The bitmap

GetForegroundImage(int)

Gets the foreground image for the page

public DjvuRaster GetForegroundImage(int subsample = 1)

Parameters

subsample int

The subsample.

Returns

DjvuRaster

Bitmap image

GetTextForLocation(Rectangle)

Gets the text for the rectangle location

public string GetTextForLocation(Rectangle rect)

Parameters

rect Rectangle

The location rect.

Returns

string

Text found on location

GetTextImage(int)

Gets the text image.

public DjvuRaster GetTextImage(int subsample = 1)

Parameters

subsample int

The subsample.

Returns

DjvuRaster

The bitmap

ReleaseManagedResources()

Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.

protected override void ReleaseManagedResources()

SaveData(Stream)

Saves the data.

protected override void SaveData(Stream stream)

Parameters

stream Stream

The stream to save data to.

Exceptions

NotImplementedException

UpdateDimensions(int, int)

Updates the image dimensions.

protected override void UpdateDimensions(int newWidth, int newHeight)

Parameters

newWidth int

The new image width.

newHeight int

The new image height.

Exceptions

NotImplementedException

Events

PageExportedAction

Occurs when [page exported action].

public static event OnPageExportedAction PageExportedAction

Event Type

OnPageExportedAction

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler