Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, December 12, 2012 11:30:12 PM(UTC)
Gunasekaran

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?



 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, December 13, 2012 2:07:52 AM(UTC)
Maen Hasan

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
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.048 seconds.