Solved

printing bitmap

Posted on 1998-04-06
2
204 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 50 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
Delphi: ForceDirectory plain function 7 50
Base1 Encode/Decode 3 89
Delphi android app hide keyboard 3 46
Delphi TListView and TEdit (Select item and input into TEdit) 10 50
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…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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