Solved

Draw the rotation of an jpeg

Posted on 2004-09-13
5
507 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 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

696 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