?
Solved

printing bitmap

Posted on 1998-04-06
2
Medium Priority
?
206 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
[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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

771 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