Solved

Draw the rotation of an jpeg

Posted on 2004-09-13
5
500 Views
Last Modified: 2012-05-05
I want to draw and rotate a jpegimage at the same time!

I've seen a program that draws the image from left to right, how can i do that?

What i want is to draw the image at the same time that it is beeing rotated, instead of rotate first then paint it, Can this be done?
0
Comment
Question by:Lindholm_filip
5 Comments
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 12051696
In order to display TJpegImage, you will have to assign it to TBitmap. If you want to rotate a TBitmap, there are a lot of sources on the web...

but I don't get what you mean by "draw and rotate a jpegimage at the same time"...
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12052774
--> I've seen a program that draws the image from left to right, how can i do that
I guess you mean to have some drawing effects...
If so you should work with opengl....
Take a look here for a complete OPENGL tutorial and source code http://www.sulaco.co.za/
0
 
LVL 4

Accepted Solution

by:
Evarest earned 250 total points
ID: 12052885
Maybe you'd be interested in the Graphics32 components. With the package comes an example in the demo section of how to rotate a layer (image) and show it during the rotation.

That compiled example you may download from my serverspace:
www.esat.kuleuven.ac.be/~eschoofs/ExEx/Rotate_Ex.exe

This way you can see for yourself whether it's what you want or not...

The Graphics32 package can be downloaded from
http://graphics32.org/wiki/
or directly from
http://prdownloads.sourceforge.net/graphics32/graphics32_1-6.zip?download

When you want to do more with Bitmaps/JPEG then just show it, then I recommend taking a look at these components...

Kind regards,
Evarest
0
 

Author Comment

by:Lindholm_filip
ID: 12060683
Thank you all for replyes!

The graphics32 looks real good.

0
 
LVL 4

Expert Comment

by:Evarest
ID: 12062415
Well... Sometimes it's better not to go into creating a whole new component when it's out there allready :-) That's the whole concept of OO programming...

Cheers!
Evarest
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now