Using the Aphelion™ ActiveX Components (cont'd)

Integrating Image Processing capability into an application has never been so simple. Let's just guide you through a few steps showing how to develop a Visual J++ application which calls for the Aphelion™ ActiveX components.

1) Create a new Project

After starting Visual J++, create a new Windows Application

New Project

2) Insert the ActiveX components

Component List
Insert Controls in the Form
Control's Wrappers

3) Insert ApxObjects ActiveX Control and ATL Control

Insert ApxObject and ATL COM Wrapper's 1
Insert ApxObject and ATL COM Wrapper's 2
Insert ApxObject and ATL COM Wrapper's 3

4) Implement the Application ...

Code example

5) Final Step

Application compiled and loaded

With the Aphelion™ ActiveX components, developing imaging applications has never been so easy, and so much fun.


Differences between Visual Basic / Visual C++ and Visual J++:

Using the ApxImage and ApxImageDisplay Controls to preview an image

Visual C++ Code

ApxImage1->Read("Blood.tif");
IDispatchPtr iDispatch(ApxImage1) ;
ApxImageDisplay1->put_Content(iDispatch);

Visual Basic Code

ApxImage1.Read "Blood.tif"
ApxImageDisplay1.Content = ApxImage1.Object

Visual J++ Code

this.apxImage1.Read("C:\\Blood.tif");
this.apxImageDisplay1.setContent(this.apxImage1.getOcx());