LEADTOOLS Support
General
General Questions
Apply Brightness without using dialog?
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, December 12, 2012 11:30:12 PM(UTC)
Groups: Registered
Posts: 53
Hi
I am using lead tools version 15.0 and working in F:\LEAD Technologies\Examples\ClassLibrary\MSVC\MainDemo project. In this project Apply Adjust->Brightness While dialog will appear for to get value using this code
*****************************************************************************
BRIGHTNESSDLGPARAMS DlgParams;
memset ( &DlgParams, 0, sizeof ( BRIGHTNESSDLGPARAMS ) ) ;
DlgParams.uStructSize = sizeof ( BRIGHTNESSDLGPARAMS ) ;
m_LAniWnd.DialogColor()->EnableCallBack(FALSE);
m_LAniWnd.DialogColor()->EnablePreview(pTheApp->m_bDlgEnablePreview );
m_LAniWnd.DialogColor()->EnableAutoProcess(m_bDlgAutoProcess);
m_LAniWnd.DialogColor()->EnableToolbar(m_bDlgEnableToolBar);
m_LAniWnd.DialogColor()->SetBrightnessParams(&DlgParams) ;
m_LAniWnd.DialogColor()->DoModalBrightness(m_hWnd);
*****************************************************************************
How can i apply the brightness image without dialog?
#2
Posted
:
Thursday, December 13, 2012 2:07:52 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
If you mean that you want to change the brightness of the bitmap programmatically, you can use the ChangeIntensity() function as follows:
+-----------+
m_LAniWnd.ChangeIntensity(500);
+-----------+
If you mean something else, please provide me with details about your requirements.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
General
General Questions
Apply Brightness without using dialog?
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.