Gdip_SetImageAttributesColorMatrix&NumPut, how does it work?

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Gdip_SetImageAttributesColorMatrix&NumPut, how does it work?

Re: Gdip_SetImageAttributesColorMatrix&NumPut, how does it w

Post by brandonhotkey » 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++.

Re: Gdip_SetImageAttributesColorMatrix&NumPut, how does it w

Post by brandonhotkey » 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?

Re: Gdip_SetImageAttributesColorMatrix&NumPut, how does it w

Post by nnnik » 18 May 2014, 11:12

Re: Gdip_SetImageAttributesColorMatrix&NumPut, how does it w

Post by brandonhotkey » 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.

Top