[futurebasic] Re: [FB] Fill-it Diller program

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2001 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Tue, 25 Sep 2001 21:20:20 -0400
>on 25/9/01 3:37 am, Robert Covington at artlythere@... wrote:
>
>> Little cool thing I came up with this weekend to handle
>>mask-anti-aliasing...
>>
>> Use Undo or Create New to reset. Or brush in your own mess.
>>
>> Includes 3 of the greatest puns to ever infiltrate fine software as well.
>>
>>
>> Robert Covington
>
>
>As always RC, I'm trying to keep up with all your excellent coding tricks
>(and puns) - the demo is excellent by the way (not too sure about the puns -
>I've only spotted one (maybe two))...

Thanks.

1 . Fillit Diller, Phyllis Diller Comedienne
2.  Blur Rabbit, Burr Rabbit (southern classic)
3.  Dedicated to Fill ,   I can't mention the name, it still touches me.


>But why is it a demo of mask handling

It isn't. Your're fired. I said "Little cool thing I came up with this
weekend to handle mask-anti-aliasing..."

It then said   "B/W Bitmap smoothing exercise." Which is more accurate.
Masks are Black and white bitmaps, grayscale for best results, as far as
smoothness.

The mask handling is up to you.  I am not even sure it works yet, the fill
colors used might need altering for actual use, if a recent test is any
indication. They may be too light. It certainly isn't up to great quality
yet.

>when you don't use the FN COPYMASKME included in the code...

I copied that in there by accident from my graphics include.

The obvious missing step is to use that to show the difference between the
two versions though.

Here is a simple step...

In FN doMenu code, add:

case 5
Long if gDrawGWorld
Select itemID
case 1
color _zBlack
FN CopyGW2GW(gDrawGWorld,gUndoGWorld,gRect,gRect)
Call SetGWorld(gDrawGWorld,0)
Color _zRed
call PaintRect(gRect)
color _zBlack
Call SetGWorld(gScreenGW,gScreenDevice)
FN CopyMaskMe(gDrawGWorld,gUndoGWorld,gScreenGW,gRect,gRect,gRect)
End Select
End IF

In FN Init_Menu, add:

Menu 5,0,_enable, "Fired Man"
Menu 5,1,_enable, "CopyMask"


Then copyMask,undo, with the various combo's.

>presume you
>use the b&w gworld and use your own filter code, er... somehow, to do some
>copying...

There needs to be a way to generate an anti-aliasied mask for CopyMask on
the fly when drawing with a selection tool, this takes care of that
somewhat without the giant memory requirements of drawing 3-4 times large.
Maybe.

I just thought people would like to know how to smooth a bitmap a little,
without using a blur which doesn't work all that well if not scaling down
afterwards.

Whatever I hired you for, you are fired. Fired fired.

There. I feel better.

:)

Any more complaints, or issues of non-performance, send them to Andy
Pritchard, care of, "I'm fired" at "I Got Fired.com" :)

Any better solutions, send them to me at artlythere@....

Gracias, so much.

Robert

Author:
The  2 (was 3) Masketeers
Firing - The Easy Way: " You're Fired! "
Fired Up, Cooled Down...The Fired Person's Guide To Getting Fired Again