?
Solved

printing bitmap

Posted on 1998-04-06
2
Medium Priority
?
208 Views
Last Modified: 2010-04-06
here's my question
1.how can i print a timage in a tile style like printing a calling card.
2.how can i send a bitmap in a quickreport and print it.
can anybody help me. a sample program will be great help.

!!!needs help from the philippines.....!!!
0
Comment
Question by:SABOG7
2 Comments
 
LVL 1

Accepted Solution

by:
pjdb earned 100 total points
ID: 1361317
For the first question you can try :

Procedure TilePrint(entree:Timage; sortie:Tcanvas);
Var
      haut, gauche:word;
      dest_rect, source_rect:Trect;
Begin
      haut:=sortie.cliprect.top;
      source_rect.top:=0;
      source_rect.bottom:=entree.canvas.cliprect.bottom - entree.canvas.cliprect.top;
      source_rect.left:=0;
      source_rect.right:=entree.canvas.cliprect.right - entree.canvas.cliprect.left;
      while haut<sortie.cliprect.bottom do
      begin
            gauche:=sortie.cliprect.left;
            while gauche<sortie.cliprect.right do
            begin
                  dest_rect.top:=haut;
                  dest_rect.bottom:=haut + source_rect.bottom;
                  dest_rect.left:=gauche;
                  dest_rect.right:=gauche + source_rect.right;
                  sortie.Copyrect(dest_rect, entree.canvas, source_rect);
                  gauche:=gauche + source_rect.right;
            end;
            haut:=haut + source_rect.bottom;
      end;
End;      {TilePrint}

Where "entree" is the image you want to print and "sortie" is the destination canvas

So the call can be :

TilePrint(myimage, printer.canvas);

JDB
0
 

Author Comment

by:SABOG7
ID: 1361318
thanks very much for ur help, this means a lot to me thank you..

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

809 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