VoyForums

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:35:07 02/26/01 Mon
Author: Michel
Subject: Re: RGB or Scanline
In reply to: Bob Villiers 's message, "RGB or Scanline" on 17:18:55 02/23/01 Fri


Dear Bob,

Using the ScanLine property will be slightly faster (but maybe not noticeable depending on the operations), because the RGB property is accessed for every pixel and it may do some conversion from an RGB to a palette index if you are manipulating black and white or palette images. With the RGB property, you don't have to worry about the layout of the bits within the scan line.

Best regards,

Michel


>I have been working on mixing two TdibGraphic images
>(same size,same image format) using Earl Glyn's Tween
>example as a model. The images are 2200 x 400.
>
>This involves separating the R,G and B component of
>each pixel in each image and creating a new image
>where the corresponding pixel is the weighted addition
>of the two contributing images. I tried using the RGB
>property and the scanline property. Both worked but
>both were too slow for my purposes.
>
>I have now found an alternative solution to the
>problem, but for future reference, what would be the
>preferred method for pixel level work, RGB or
>Scanline. In the example above there did not appear to
>be a great difference.
>
>Bob

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


Replies:


[ 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.