delphi cartoon drwaing

Posted on 2006-04-12
Last Modified: 2012-06-21
I need an application so:
1) It loads a JPEG or BMP at the background (easy part)
2) User can add some pre-defned shapes (as comic strip ballon above the background) and texts
3) User can move/edit/delete this baloons and edit texts as well
4) User can save the whole work in JPEG

Is there an avaible component to make this work ?

Best regards
Question by:yarek
    LVL 17

    Accepted Solution

    the only tricky part is placing the baloons/text on the image without blitzing the background.
    This link shows you how to do that

    So, load the jpg, but convert it to bmp so you can work on it more easily (by using

    Apart from that, keep an "original image" on file (and in memory while you work), and perhaps simply make a list of "changes done to the image"
    an ini file for example

    [change 1]
    type=overlay image
    overlay image filename=c:\temp\baloonshape1.jpg

    [change 2]
    font=comic sans serif
    font size=10
    font color=$00FF00
    font underline=0
    font bold=1

    basically 1 ini section per actual end result image/text that has been added.
    as you move a baloon, update the ini file, and then "redraw the whole thing" 1 step at a time (the image and mask may still be in memory if you use that link i pasted above)

    That's probably how I'd do it anyway
    LVL 33

    Expert Comment

    hello yarek , ,  I can not tell much from your statements in your question about the complexity of your  " pre-defned shapes " or the pixel size of these, and other factors that would affect this kind of operation, , but if you do not need photographic image detail in your " pre-defned shapes ", I would think that Meta file images (delphi TMetafile) would be the best way to do this, you can also do text as a TMetafile, , with TMetafiles you will not need to do masking for transparent drawing. . .  Have you used the TMetafile ?

    Expert Comment

    the graphics 32 package is great for this :)

    Graphics32 is a set of functions, classes, components and controls designed for high-performance graphics programming.

    Being highly specialized for 32-bit pixel format, it provides fast operations with pixels and graphic primitives and in most cases Graphics32 considerably outperforms standard TBitmap/TCanvas classes.

    The library comes with a full source code, documentation and examples.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    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…
    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    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…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    759 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

    9 Experts available now in Live!

    Get 1:1 Help Now