Re: plotting Ascii in bitmap [message #52299] |
Sun, 28 January 2007 23:58 |
Ingo von Borstel
Messages: 54 Registered: September 2006
|
Member |
|
|
Hi,
> But the Z-buffer has only 8-bit available for the colors in the
> picture, right? Then it won't work if you have more than
> 255 different colors in your picture...
Just a few posts earlier, David Fanning gave me an answer on a very
similar question of mine. I'm not sure about colors, though. Look for
the post "Writing on an image" by me - and especially the answer to this
question:
news://news.tu-bs.de:119/eo0k9r$6f$1@rzcomm2.rz.tu-bs.de
Best regards,
Ingo
--
Ingo von Borstel <newsgroups@planetmaker.de>
Public Key: http://www.planetmaker.de/ingo.asc
If you need an urgent reply, replace newsgroups by vgap.
|
|
|
Re: plotting Ascii in bitmap [message #52321 is a reply to message #52299] |
Fri, 26 January 2007 08:27  |
Paolo Grigis
Messages: 171 Registered: December 2003
|
Senior Member |
|
|
hradilv wrote:
> Will using the Z-buffer help performance enough? Give it try.
But the Z-buffer has only 8-bit available for the colors in the
picture, right? Then it won't work if you have more than
255 different colors in your picture...
Paolo
>
> On Jan 26, 6:47 am, "Gert" <Gert.VandeWouwerNO @ SPAM.com> wrote:
>> Hi,
>>
>> I need to plot colored numbers (and letters) on a bitmap and then save the
>> result. It's not necessary to view the overlay bitmap in IDL.
>> so:
>> x = read_tiff('bitmap.tif')
>> overlay=x ;maybe be make an RGB here..
>> plottext('kjdhkj',positionrow,positioncol)
>> plottext('323',positionrow,positioncol)
>> write_tiff, x, 'overlay.tif'
>>
>> Does anyone know how the plottext() function should look like? I did it once
>> by:
>> tvsxcl,x
>> plot, stuff
>> oplot, stuff...
>> tvrd, overlay
>> but this isn't very practical if x is 5000x5000 bitmap...
>>
>> Thanks,
>>
>> Gert
>
|
|
|
Re: plotting Ascii in bitmap [message #52322 is a reply to message #52321] |
Fri, 26 January 2007 08:09  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
Will using the Z-buffer help performance enough? Give it try.
On Jan 26, 6:47 am, "Gert" <Gert.VandeWouwerNO @ SPAM.com> wrote:
> Hi,
>
> I need to plot colored numbers (and letters) on a bitmap and then save the
> result. It's not necessary to view the overlay bitmap in IDL.
> so:
> x = read_tiff('bitmap.tif')
> overlay=x ;maybe be make an RGB here..
> plottext('kjdhkj',positionrow,positioncol)
> plottext('323',positionrow,positioncol)
> write_tiff, x, 'overlay.tif'
>
> Does anyone know how the plottext() function should look like? I did it once
> by:
> tvsxcl,x
> plot, stuff
> oplot, stuff...
> tvrd, overlay
> but this isn't very practical if x is 5000x5000 bitmap...
>
> Thanks,
>
> Gert
|
|
|