[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1234567[8]910 ]

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 07:47:46 06/05/01 Tue
Author: Michel
Subject: Re: Drawing colored shapes on a B&W Tiff Image
In reply to: Tomas 's message, "Drawing colored shapes on a B&W Tiff Image" on 03:05:47 06/05/01 Tue

Hi Tomas,

There is not an easy solution to this. If you draw on the TDibGraphic.Canvas, this will not work, because this is a black and white image. Changing the color format will change the size of your image so you probably don't want to do that.

You probably don't want to draw directly on the image either, because this will actually change the image.

You should these annotations seperate from the image, and draw them on the canvas of the component where the image is displayed. For example, in the EnRubber.Pas unit, a canvas is created directly on the image scroll box, and the rubber band is drawn on the image scroll box, not on the graphic:

FCanvas := TCanvas.Create;
FCanvas.Handle := GetDC(FImageScrollBox.Handle);

The EnRubber.Pas unit will give a starting point on how to draw on a displayed image.

Best regards,


>I need to draw colored boxes around OCR'ed words on a
>B&W TIFF image. Setting the colors on the canvas for
>pen & brush do not work. Do I need to convert the
>image to color or to another format?
>Thanks in advance,

[ Next Thread | Previous Thread | Next Message | Previous Message ]

[ Contact Forum Admin ]

Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.