1. Bits and Bytes: New Ranch flavour!

------=_NextPart_000_007E_01C01199.7F702BA0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

In responce to my question about the black box around bitmaps, David =
Cuny wrote:

Converts the bitmap into 'slices', and remove the 'invisible' color. For
example, consider the box in this bitmap. The outer border is color 1, =
the
inner border is color 2, and the inner color is color 0 (invisible).

111111
122221
120021
120021
122221
111111

This can be broken into the following:

   { 0, 0, {1,1,1,1,1,1} }
   { 0, 1, {1,2,2,2,2,1} }
   { 0, 2, {1,2} }
   { 4, 2, {2,1} }
   { 0, 3, {1,2} }
   { 4, 3, {2,1} }
   { 0, 4, {1,2,2,2,2,1} }
   { 0, 5, {1,1,1,1,1,1} }

The first two values indicate where to place the scanline, relative to =
the
origin. The sequence following represents the pixels to draw.

-- David Cuny

But, how do I do that? It's a little too complicated, I don't know much =
about bits and bytes. Can someone help simplify?

Thnks

Thomas

------=_NextPart_000_007E_01C01199.7F702BA0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>In responce to my question about the =
black box=20
around bitmaps, David Cuny wrote:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Converts the bitmap into 'slices', and =
remove the=20
'invisible' color. For<BR>example, consider the box in this bitmap. The =
outer=20
border is color 1, the<BR>inner border is color 2, and the inner color =
is color=20
0=20
111<BR><BR>This=20
can be broken into the following:<BR><BR>&nbsp;&nbsp; { 0, 0, =
{1,1,1,1,1,1}=20
}<BR>&nbsp;&nbsp; { 0, 1, {1,2,2,2,2,1} }<BR>&nbsp;&nbsp; { 0, 2, {1,2}=20
}<BR>&nbsp;&nbsp; { 4, 2, {2,1} }<BR>&nbsp;&nbsp; { 0, 3, {1,2}=20
}<BR>&nbsp;&nbsp; { 4, 3, {2,1} }<BR>&nbsp;&nbsp; { 0, 4, {1,2,2,2,2,1}=20
}<BR>&nbsp;&nbsp; { 0, 5, {1,1,1,1,1,1} }<BR><BR>The first two values =
indicate=20
where to place the scanline, relative to the<BR>origin. The sequence =
following=20
represents the pixels to draw.<BR><BR>-- David Cuny</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>But, how do I do that? It's a little =
too=20
complicated, I don't know much about bits and bytes. Can someone help=20
simplify?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thnks</FONT></DIV>
<DIV>&nbsp;</DIV>

------=_NextPart_000_007E_01C01199.7F702BA0--

new topic     » topic index » view message » categorize

2. Re: Bits and Bytes: New Ranch flavour!

On Tue, 29 Aug 2000 09:14:13 -0700, Thomas Kerslake wrote:

>In responce to my question about the black box around bitmaps, David Cuny
wrote:
>
>Converts the bitmap into 'slices', and remove the 'invisible' color. For
>example, consider the box in this bitmap. The outer border is color 1, the
>inner border is color 2, and the inner color is color 0 (invisible).
>
>111111
>122221
>120021
>120021
>122221
>111111
>
>This can be broken into the following:
>
>   { 0, 0, {1,1,1,1,1,1} }
>   { 0, 1, {1,2,2,2,2,1} }
>   { 0, 2, {1,2} }
>   { 4, 2, {2,1} }
>   { 0, 3, {1,2} }
>   { 4, 3, {2,1} }
>   { 0, 4, {1,2,2,2,2,1} }
>   { 0, 5, {1,1,1,1,1,1} }
>
>The first two values indicate where to place the scanline, relative to the
>origin. The sequence following represents the pixels to draw.
>
>-- David Cuny
>
>But, how do I do that? It's a little too complicated, I don't know much
about bits and bytes. Can someone help simplify?
>
>Thnks
>
>Thomas

Try searching the archives for 'sprite'.  Choose the technique that suits
you best.

-- Brian

new topic     » goto parent     » topic index » view message » categorize

3. Re: Bits and Bytes: New Ranch flavour!

On Tue, 29 Aug 2000 13:39:42 -0400, Brian Broker wrote:

>On Tue, 29 Aug 2000 09:14:13 -0700, Thomas Kerslake wrote:
>
>>In responce to my question about the black box around bitmaps, David Cuny
>wrote:
>>
>>Converts the bitmap into 'slices', and remove the 'invisible' color. For
>>example, consider the box in this bitmap. The outer border is color 1, the
>>inner border is color 2, and the inner color is color 0 (invisible).
>>
>>111111
>>122221
>>120021
>>120021
>>122221
>>111111
>>
>>This can be broken into the following:
>>
>>   { 0, 0, {1,1,1,1,1,1} }
>>   { 0, 1, {1,2,2,2,2,1} }
>>   { 0, 2, {1,2} }
>>   { 4, 2, {2,1} }
>>   { 0, 3, {1,2} }
>>   { 4, 3, {2,1} }
>>   { 0, 4, {1,2,2,2,2,1} }
>>   { 0, 5, {1,1,1,1,1,1} }
>>
>>The first two values indicate where to place the scanline, relative to the
>>origin. The sequence following represents the pixels to draw.
>>
>>-- David Cuny
>>
>>But, how do I do that? It's a little too complicated, I don't know much
>about bits and bytes. Can someone help simplify?
>>
>>Thnks
>>
>>Thomas
>
>Try searching the archives for 'sprite'.  Choose the technique that suits
>you best.
>
>-- Brian

Also search for 'transparent' because if you don't need anything fancy,
Caballero Rojo submitted a very small/simple solution that should be easy
enough to follow, even for a beginner...
( http://www.rapideuphoria.com/transp.zip )

-- Brian

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu