?
Solved

Draw the rotation of an jpeg

Posted on 2004-09-13
5
Medium Priority
?
508 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 23

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 1000 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

765 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