Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

printing bitmap

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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

618 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