J2K-Codec ™

News
Overview
Download
Order
F.A.Q.
More info
Support
Links

Welcome
QuickStart

ActiveX Control

C++ Wrapper
J2K_Image
open
easyDecode
selectTiles
getMetaData
decode
close
J2K_Frames
open
getFrames
getFrame
operators
close

API Reference
General
getVersion
getLastError
getErrorStr
getLastErrorStr
Unlock
Open / Close
Open
Close
Info
GetInfo
GetInfoEx
GetResolutions
GetResDimensions
GetMetaData
Decoding
EasyDecode
SelectTiles
Decode
Cancel
Debug
StartLogging
StopLogging


Quick Start


OK, let's get down to some real business.


1. Installation and setup
  • Place j2k-codec.h where your compiler can find it and #include it.

  • Place j2k-codec.lib where your compiler can find it, then tell the compiler to use it. For MSVC it is done in the Project Settings (Alt-F7):




    You may also want to add a new lib directory into your MSVC options:



  • Place j2k-codec.dll near your executable. Remember what Jeff Cogswell said in his "Designing Highly Useable Software":
    "Thus, as I just mentioned, if you're letting the system loader load your libraries for you, the only viable place to put them is in the same directory as the application."
  • That's it. The plugging part is done. Now you are ready to see.


2. Programming

To allow you to start as quickly as possible, we have created a "1-Call" shortcut function:

J2K_Image::easyDecode()

You can see also the "a_EasyDecode" sample, where it is actually used.


3. How to remove the demo version restrictions

First of all you need to purchase J2K-Codec and get your personal registration key.

You can do it here: http://j2k-codec.com/order.html

Then, you will need to pass your key to j2k-codec.dll via J2K_Unlock() function.

Take a look at the "b_Unlock" sample for more information.


2004-2008 © Alex Saveliev