Gdip_SetImageAttributesColorMatrix&NumPut, how does it work?

Discuss other programming languages besides AutoHotkey
brandonhotkey
Posts: 113
Joined: 03 Nov 2013, 05:46

Re: Gdip_SetImageAttributesColorMatrix&NumPut, how does it w

18 May 2014, 05:39

Gdip_SetImageAttributesColorMatrix / SetImageAttributesColorMatrix - I am trying to use this GDI+ function in C++. Can you help to do it in C++?

My questions asked here:
http://ahkscript.org/boards/viewtopic.php?f=5&t=3571

Mainly I am not sure how to declare ColourMatrix in C++ and how to fill it with values. Should it be something like string or the NumPut creates int number? Clarification will be appreciated.
brandonhotkey
Posts: 113
Joined: 03 Nov 2013, 05:46

Re: Gdip_SetImageAttributesColorMatrix&NumPut, how does it w

19 May 2014, 04:03

I tried this:

Code: Select all

ColorMatrix matrix;
	result = Gdiplus::ImageAttributes::SetColorMatrix(matrix, ColorMatrixFlagsDefault);
And I got error
error C2352: 'Gdiplus::ImageAttributes::SetColorMatrix' : illegal call of non-static member function

Do you know how to fix it?
brandonhotkey
Posts: 113
Joined: 03 Nov 2013, 05:46

Re: Gdip_SetImageAttributesColorMatrix&NumPut, how does it w

19 May 2014, 05:24

I found that this function is not what I should use. It uses .net framework as it is managed C++.

Return to “Other Programming Languages”

Who is online

Users browsing this forum: No registered users and 49 guests