Click here to Skip to main content
15,896,606 members

Comments by rswapna28 (Top 11 by date)

rswapna28 22-Nov-12 1:12am View    
I used FreeImage library for loading images. It worked fine for me. I don't know why it didn't compile for you.

If you have trouble in using FreeImage, just try looking this example. you might get some help from it.
http://www.codesampler.com/usersrc/usersrc_6.htm
(Texture loading with FreeImage - OpenGL/C++)
Download this example and check.
rswapna28 22-Nov-12 1:06am View    
Try printing the text before creating the subwindows.
You might have tried it but give a try before if you haven't.
rswapna28 22-Nov-12 0:55am View    
Thanks for the help.

I dont know how to go about the Affine transformation but I have applied Eulers method. And the third party library you have given is for .NET project. But mine is VC++.
rswapna28 22-Nov-12 0:50am View    
RotateTransform will rotate the image in any angle. But the issue i am facing is.
I want to rotate the image in point so I am translating my axis to that point and then rotate and translate back again.
eg.,
graphics.translateTransform(x, y);
graphics.rotateTransform(angle);
graphics.translateTransform(-x, -y);

Now I want my image move towards left. so I used translateTransform to move. But As my image has rotated to some angle so my movement instead global left movement, it is local left movement.

I hope I am clear.
rswapna28 21-Nov-12 1:37am View    
GDI+ is a library which is created on top of GDI. It is a 2D graphics library. So I can load any image and do rotate, translate and many more operations on it. I dont have to apply as a texture as OpenGL does and pixel tracing is also not needed.

My problem is, I could not rotate and translate the local coordinates together.