Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
Using Imaging Common Dialogs
The Imaging Common Dialog libraries provide a set of common dialog boxes that combine Windows Common Dialog functionality with imaging functionality contained in LEADTOOLS. For a list of required DLL's, refer to Files To Be Included With Your Application. Imaging Common Dialogs are provided for numerous image processing, effects and filtering functions.
Reusable dialogs for the most common LEADTOOLS imaging functions and effects are now provided.
A Thumbnail Preview option for the image processing dialogs allows the end user to preview the proposed change to the image, before actually affecting the original image.
An optional Help callback function lets you provide custom help information for each dialog.
A user interface control for the dialogs is provided through flags in the structure passed to each dialog function.
An option to have the Imaging Common Dialog process the image automatically is provided.
These dialogs provide input parameters needed for the several LEADTOOLS imaging functions. The table below gives the function that displays the dialog on the left and the image processing function associated with it on the right, if one exists. For more information on the Image Processing functions, refer to the LEADTOOLS Raster C++ Class Library help file in the LEADTOOLS/HELP directory.
Artistic Effects |
|
LBitmap::Add | |
LBitmap::AddBorder | |
LBitmap::AddFrame | |
LBitmap::AddNoise | |
LBitmap::Bending | |
LBitmap::Cylindrical | |
LBitmap::FreeHandWave | |
LBitmap::Impressionist | |
LBitmap::Mosaic | |
LBitmap::MotionBlur | |
LBitmap::Oilify | |
LBitmap::Picturize | |
LBitmap::Pixelate | |
LBitmap::Polar | |
LBitmap::Posterize | |
LBitmap::Punch | |
LBitmap::RadialBlur | |
LBitmap::RadWave | |
|
LBitmap::RemoveRedEye |
LBitmap::Ripple | |
LBitmap::Solarize | |
LBitmap::Spherize | |
| |
LBitmap::Swirl | |
LBitmapBase::Underlay | |
LBitmap::Wave | |
LBitmap::FreeHandShear | |
LBitmap::Wind | |
LBitmap::ZoomBlur | |
LBitmap::ZoomWave | |
|
|
Color Manipulation |
|
LBitmap::BalanceColors | |
LBitmap::ChangeIntensity | |
| |
LBitmap::ConvertToColoredGray | |
LBitmapBase::ColorRes | |
LBitmap::ChangeContrast | |
| |
| |
LBitmapBase::GrayScale | |
LBitmap::HalfTone | |
LBitmap::HistoContrast | |
| |
LBitmap::ChangeHue | |
LBitmap::IntensityDetect | |
LBitmap::LocalHistoEqualize | |
LBitmap::Multiply | |
LBitmap::RemapHue | |
LBitmap::RemapIntensity | |
LBitmap::ChangeSaturation | |
|
|
Converting Files |
|
| |
Document Clean up |
|
LBitmap::BorderRemove | |
LBitmap::DotRemove | |
LBitmap::HolePunchRemove | |
LBitmap::InvertedText | |
LBitmap::LineRemove | |
LBitmap::Smooth | |
|
|
Filtering |
|
LBitmap::ContourFilter | |
LBitmap::BinaryFilter | |
LBitmap::EdgeDetector | |
LBitmap::Emboss | |
LBitmap::BinaryFilter | |
LBitmap::SpatialFilter | |
LBitmap::SpatialFilter | |
LBitmap::SpatialFilter | |
LBitmap::MaxFilter | |
LBitmap::MinFilter | |
LBitmap::SpatialFilter | |
LBitmap::SpatialFilter | |
LBitmap::SpatialFilter | |
|
|
Geometric Transformations |
|
LBitmap::AutoTrim | |
| |
| |
LBitmapBase::Rotate | |
LBitmapBase::Shear | |
|
|
HTML/Web |
|
| |
LBitmapBase::ColorRes , LBitmapBase::Fill , LBitmapBase::Save | |
LBitmapBase::Save | |
LBitmapBase::ColorRes , LBitmapBase::Fill , LBitmapBase::Save | |
|
|
Printing |
|
| |
| |
|
|
Sharpening or Blurring an Image |
|
LBitmap::AntiAlias | |
LBitmap::AverageFilter | |
LBitmap::GaussianFilter | |
LBitmap::MedianFilter | |
LBitmap::Sharpen | |
LBitmap::UnsharpMask | |
|
|
Special Effects |
|
LPaintEffect::PaintBitmap | |
LPaintEffect::DrawGradient | |
LPaintEffect::Draw3dShape | |
LPaintEffect::Draw3dText | |
LPaintEffect::PaintTransition |
In addition to the dialog functions provided for image processing, LEADTOOLS also provides Imaging Common Dialog functions for general use and dialog maintenance. These are given below.
Dialog Maintenance and General Use |
|
Each of the XXXDoModalXXX functions listed above displays a dialog through which the user can enter parameters for various image processing or other functions. These dialogs may be initialized prior to calling the XXXDoModalXXX function by calling a corresponding GetXXXParams function. Likewise, once the user has made his or her selections in the dialog, those new values can be retrieved using a corresponding SetXXXParams function. The table below lists the corresponding GetXXXParams and SetXXXParams function for each DoModalXXX function listed above:
LDialogColor:
Dialog Function |
Function To Set Parameters |
Function To Get User Selections |
LDialogDocument:
Dialog Function |
Function To Set Parameters |
Function To Get User Selections |
LDialogFile:
Dialog Function |
Function To Set Parameters |
Function To Get User Selections |
LDialogEffect:
Dialog Function |
Function To Set Parameters |
Function To Get User Selections |
LDialogImage:
Dialog Function |
Function To Set Parameters |
Function To Get User Selections |
LDialogImageEffect:
Dialog Function |
Function To Set Parameters |
Function To Get User Selections |
LDialogWeb:
Dialog Function |
Function To Set Parameters |
Function To Get User Selections |
Implementing help for LEADTOOLS dialogs is achieved by setting a pointer to a help callback function in the structure passed to all functions in LDialogXXX classes. The callback function will be called to provide the appropriate help for the corresponding dialog if the user clicks on the Help Button. For more information concerning implementing the help callback function, refer to LDialogBase::DialogHelpCallBack Callback Function.