2.11.2 - Save/Restore Image Section - JdlImageSection

John W. Campbell

2.11.2.1 Introduction

This class stores and restores a section extracted from an image.

Class, constructor and methods:

Class Details
Accessible Fields
Constructor
Methods

2.11.2.2 Class Details

Package:
Jdl.JdlLib;
Class name:
JdlImageSection
Class definition:
public class JdlImageSection
Extends:
Object
Implements:
none
Actions:
none

2.11.2.3 Accessible Fields

No fields with public, package or protected access defined.

2.11.2.4 Constructor

2.11.2.4.1 Introduction

A single constructor is available.

Constructor:

Standard constructor

2.11.2.4.2 Standard constructor

Constructs a JdlImageSection object to save and restore a section of the given image.

Constructor Definition:
public JdlImageSection(Image img)
Parameters List:
none

2.11.2.5 Methods

2.11.2.5.1 Introduction

This section contains methods for saving and restoring an image section

Methods:

Save section - saveSection
Restore section - restoreSection

2.11.2.5.2 Save section - saveSection

This method saves a section from the image.

Method Definition:
public void saveSection(int xo, int yo, int w, int h)
Parameters List:
xo
The section 'x' origin offset.
yo
The section 'y' origin offset.
w
The section width.
h
The section height.

2.11.2.5.3 Restore section - restoreSection

This method restores the saved section of the image.

Method Definition:
public void restoreSection()
Parameters List:
none

⇑ Up 2   ⇑ Up 1   ⇑ Top of this