alternetsoft / AlternetUI

MIT License
22 stars 2 forks source link

GenericImage RotateHue seems not works #78

Closed neoxeo closed 8 months ago

neoxeo commented 8 months ago

@generalloki

RotateHue seems not works.

Test code :

GenericImage test = new GenericImage(new FileStream(@"d:\downloads\starwars_PNG41.png", FileMode.Open));
test.RotateHue(0.5);
pictureBox2.Image = (Image)test; 

Image is same as source (but with different color), not rotate

generalloki commented 8 months ago

RotateHue - Rotates the hue of each pixel in the image by angle , which is a double in the range of -1.0 to +1.0, where -1.0 corresponds to -360 degrees and +1.0 corresponds to +360 degrees.

So I beleive it works as expected. RotateHue - changes pixel color, not rotates the image

neoxeo commented 8 months ago

You are right, sorry for this false issue. I need to take more time and read "describe" before to open an issue.