Solved

printing bitmap

Posted on 1998-04-06
2
196 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 50 total points
Comment Utility
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
Comment Utility
thanks very much for ur help, this means a lot to me thank you..

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now