BBC BASIC for Windows
« Bitmap clipper & plotter (BASIC prototypes) »

Welcome Guest. Please Login or Register.
Apr 6th, 2018, 12:03am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Bitmap clipper & plotter (BASIC prototypes)  (Read 1241 times)
admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Bitmap clipper & plotter (BASIC prototypes)
« Reply #5 on: Mar 5th, 2012, 4:44pm »

on Mar 5th, 2012, 03:18am, David Williams wrote:
DrawIconRTR alphablends on a pixel-by-pixel basis (using the alpha value of each source bitmap pixel, and pre-multiplied alphas of background pixels).

I don't really know what you mean by "pre-multiplied alphas of background pixels" here. In what sense do 'background' pixels have an alpha anyway? I don't guarantee that my routine will do anything sensible with the 'alpha' byte in the background bitmap: it may well corrupt it. I treat it as a 'don't care' byte.

Quote:
So the two routines do quite similar things

Does yours have the 'reflect' (about either axis) option? That added a significant degree of complexity, as I recollect.

My routine is, of course, optimised for no clipping, since (at least in my applications) clipping is very much an exceptional case.

Richard.
« Last Edit: Mar 5th, 2012, 4:54pm by admin » User IP Logged

David Williams
Developer

member is offline

Avatar

meh


PM

Gender: Male
Posts: 452
xx Re: Bitmap clipper & plotter (BASIC prototypes)
« Reply #6 on: Mar 6th, 2012, 03:21am »

on Mar 5th, 2012, 4:44pm, Richard Russell wrote:
I don't really know what you mean by "pre-multiplied alphas of background pixels" here.


Neither do I (lol).

I now know that what I wrote was nonsense.


on Mar 5th, 2012, 4:44pm, Richard Russell wrote:
Does yours have the 'reflect' (about either axis) option? That added a significant degree of complexity, as I recollect.


No, mine doesn't.

The only GFXLIB routine that performs any kind of flipping/reflection is GFXLIB_PlotFlip (and a variant of it). This may be about to change, however.


David.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls