Page 1 of 1

Gdip_SetImageAttributesColorMatrix&NumPut, how does it work?

Posted: 04 May 2014, 15:34
by brandonhotkey

Re: Gdip_SetImageAttributesColorMatrix&NumPut, how does it w

Posted: 18 May 2014, 05:39
by brandonhotkey
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.

Re: Gdip_SetImageAttributesColorMatrix&NumPut, how does it w

Posted: 18 May 2014, 11:12
by nnnik

Re: Gdip_SetImageAttributesColorMatrix&NumPut, how does it w

Posted: 19 May 2014, 04:03
by brandonhotkey
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?

Re: Gdip_SetImageAttributesColorMatrix&NumPut, how does it w

Posted: 19 May 2014, 05:24
by brandonhotkey
I found that this function is not what I should use. It uses .net framework as it is managed C++.