PrintPreview & Center Image

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

PrintPreview & Center Image

Postby tomas » November 15th, 2006, 3:09 pm

Is there any way, how to center (horizontal and vertical direction) loaded bmp picture?
tomas
Active Member
Active Member
 
Posts: 8
Joined: November 10th, 2006, 11:33 pm
Location: Czech republic

Postby Johnny_Bit » November 15th, 2006, 4:34 pm

Man, you draw it there, it's your job. Simply calculate it and put in right place.
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Postby tomas » November 15th, 2006, 6:00 pm

OK.

I am drawing some vector data to PrintPreview Canvas. Is there any reason, how to move this data to the center of Canvas. Recalculate my data, it is not a simple problem :-) ...

Thanks...
tomas
Active Member
Active Member
 
Posts: 8
Joined: November 10th, 2006, 11:33 pm
Location: Czech republic

Postby Johnny_Bit » November 15th, 2006, 8:44 pm

Wait, first you want to center bitmap, now vector data? man, get real!

For every problem, there's solution (algorithmic, or not). In your case I'd consider drawing on scalable vector graphics and then drawing that image on Preview's canvas. This way you can scale stuff, rotate and such and there would be no problem. Another way is dynamic bitmap creation. That way you draw your stuff on bitmap and draw bitmap on preview's canvas just like I said.
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Postby tomas » November 15th, 2006, 10:07 pm

There are 2 possibilities: move vector data (coordinates x and y) before drawing or move bitmap (after drawing). I would like to ask you, if there is a possibility of moving some part of bitmap (with printpreview->canvas?) or setting up some x/y offset before drawing. If not, I have to solve the second way, modify x, y coordiantes.
tomas
Active Member
Active Member
 
Posts: 8
Joined: November 10th, 2006, 11:33 pm
Location: Czech republic

Postby Johnny_Bit » November 16th, 2006, 4:32 pm

There's now way of moving drawn bitmap.
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 2 guests

cron