473,394 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

VC++/GDI+ Imageattributes.SetColorMatrix

Hello All,

I am running into a problem when using SetColorMatrix method in ImageAttributes class of GDI+ inside my VC++ code.

I am creating a color matrix and then for changing contrast of color image, I am doing a scaling on color matrix. Now I am applying this matrix to image attributes by using setcolormatrix call. After this I am seeing that CPU utilization reaches 100% and rest everything does not work as expected. Can we implement this in different way or this is the only method? Am I doing anything wrong?

Do I have to dispose the image attributes after I finish draw image call? If yes, then how can I accomplish this in VC++? I tried doing Reset after drawing this clears the contrast manipulation done but good thing is that it does not overload the CPU.

I am confused, anyone...please assist.

Thank you

Regards
Arvind G
May 23 '07 #1
0 2032

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Ville Ahonen | last post by:
I'm just learning C++ and thought I'd program a simple screensaver in VC++ as my first assignment. I've found some tutorials showing how to create a screenasver using OpenGL, but I found it very...
14
by: SignOff | last post by:
HI, I'm using a MSVC++ 7.0 with MFC. Let'ssay I created a class derived from CStatic: class Card : CStatic { ...... }
3
by: Dr. Zharkov | last post by:
Hello. Inform, please, how to find the programs on building the 3D-graphics of function z=f (x, y) and only for Visual Studio .NET: Visual C# .NET, Visual Basic .NET or Visual C++ .NET and GDI+...
5
by: anonymous | last post by:
I'm writing a program that deals extensively with the printer. For the most part my application runs fine, but occasionally I run into some Exceptions. The most common exceptions I run into are...
1
by: Daniel | last post by:
Hi, While I compile my old C++ source in VC.Net, rebulild whole project, there are always some header files are unvaliable like "fstream.h", "Dxguide.h".....etc. Did VC.Net remove the VC++'s...
6
by: James dean | last post by:
I have heard that the video drivers in GDI+ are a big performance issue. But is this only an issue with something like Games Programming i think...is this wrong?. What about a drawing application...
1
by: bpriya | last post by:
Can anyone please point to a website where I can find more information on how to use VC++.Net and GDI+. All the examples on CodeProject use GDI+ and VC++ 6.0 Thanks!
14
by: John | last post by:
My friend told me that his company will migrate the VC++ win32 applications to C++ .NET windows applications. I don't understand why since currently Microsoft only supports .NET on windows...
3
by: =?Utf-8?B?UHJhaGFsYWQgRGVzaHBhbmRl?= | last post by:
Hi All, I am facing a show stopper problem with my development environment. I have VS2005 installed on my system. I wrote a simple C# application that does nothing more than print a Hello World...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.