Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » How to rotate an image
Re: How to rotate an image [message #21778 is a reply to message #21772] Thu, 04 June 2009 21:42 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
forlano wrote on Thu, 04 June 2009 12:08

mr_ped wrote on Wed, 03 June 2009 14:55

In Draw/ImageOp.h there are:
Image RotateClockwise(const Image& img);
Image RotateAntiClockwise(const Image& img);
Image MirrorHorz(const Image& img);
Image MirrorVert(const Image& img);
Image Rotate(const Image& m, int angle);





Thanks. To use them I moved on ImageDraw. Painter seems to complicated because I need to include the rotated image and its original in a qtf document.
Please let me ask one more question:

In
ImageDraw iw(1200, 1000);
if iw is printed on the screen the numbers are pixel?
If I create a qtf object with

QtfRichObject pict( CreateImageObject(iw, 1200, 1000) ) ;
String qtf;
qtf << "[A6 This is some drawing in QTF: " << pict << "&";
PromptOK(qtf);

I see a smaller size. How the image is scaled in the qtf units?



Well, generally, scaling factor varies Smile

In the case of Prompt, scaling is defined by

Zoom GetRichTextStdScreenZoom()
{
	return Zoom(Ctrl::HorzLayoutZoom(96), 600);
}


Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Draw package and console app error
Next Topic: Code error for svn1432
Goto Forum:
  


Current Time: Tue May 07 11:52:21 CEST 2024

Total time taken to generate the page: 0.01662 seconds