1. The Common Black Box
- Posted by Paul Kerslake <paulk at UNISERVE.COM> Aug 28, 2000
- 465 views
------=_NextPart_000_0008_01C0111F.CBA7BD00 boundary="----=_NextPart_001_0009_01C0111F.CBB0E4C0" ------=_NextPart_001_0009_01C0111F.CBB0E4C0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Well, I'm sure this has been asked a billion times but, how do I get rid = of the black box around BMPs?=20 -- This is not good! How might I make the black transparent? Who programmed the idea that BMPs had to be boxes anyways? Doesn't seems = like a very good idea, -Thomas ------=_NextPart_001_0009_01C0111F.CBB0E4C0 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>Well, I'm sure this has been asked a = billion times=20 but, how do I get rid of the black box around BMPs? </FONT></DIV> <DIV> </DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2> </FONT><IMG align=3Dbaseline = alt=3D"" border=3D0=20 hspace=3D0 src=3D"cid:000701c0115a$77c37180$0100007f@kerslake"=20 style=3D"HEIGHT: 173px; WIDTH: 135px"><FONT face=3DArial size=3D2> = -- This is=20 not good!</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>How might I make the black=20 transparent?</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Who programmed the idea that BMPs had = to be boxes=20 anyways? Doesn't seems like a very good idea,</FONT></DIV> <DIV> </DIV> <DIV> </DIV> ------=_NextPart_001_0009_01C0111F.CBB0E4C0-- ------=_NextPart_000_0008_01C0111F.CBA7BD00 name="fdance.bmp"
2. Re: The Common Black Box
- Posted by David Cuny <dcuny at LANSET.COM> Aug 29, 2000
- 450 views
Paul Kerslake wrote: > Well, I'm sure this has been asked a billion times but, how > do I get rid of the black box around BMPs? 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
3. Re: The Common Black Box
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Aug 29, 2000
- 446 views
Hello Thomas >Well, I'm sure this has been asked a billion times but, how do I get rid of >the black box around BMPs? > -- This is not good! >How might I make the black transparent? >Who programmed the idea that BMPs had to be boxes anyways? Doesn't seems >like a very good idea, > >-Thomas Well, since the computer screen is shaped like a box it kinda makes since... :) Well, I haven't seen my suggestion yet as to how to fix this so I'll give it a shot. My FIRST suggestion would be to use the Neil graphics library by PETE EBERLEIN. With neil, you can do a clear_blit which only puts the non-black pixels on the screen. But if you prefer to use graphics.e becuase it is more familiar ...and I understand that... Here is my SECOND suggestion: you have an image in a sequence variable in the format that read_bitmap gives you (w/o the palette) include graphics.e include image.e if graphics_mode (18) then end if object pic,mask pic = read_bitmap("c:\\windows\\bubbles.bmp") all_palette (pic [1]) pic = pic [2] constant line = repeat (BRIGHT_RED,640) -- make a background for i = 1 to 480 do pixel (line-1,{0,i}) end for sequence pos, size pos = {10,10} size = {length(pic[1]), length(pic)} display_image (pos, pic) -- without mask pos [1] += size [1] + 5 mask = (pic = 0) -- save all black pixels mask = save_image (pos, pos+size-1) * mask display_image (pos, mask + pic) -- with mask hope this helps, Lewis Townsend _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
4. Re: The Common Black Box
- Posted by ck lester <cklester at YAHOO.COM> Aug 29, 2000
- 455 views
------=_NextPart_000_0009_01C011F0.E02AD2E0 boundary="----=_NextPart_001_000A_01C011F0.E02AD2E0" ------=_NextPart_001_000A_01C011F0.E02AD2E0 charset="iso-8859-1" The "background" area has to be SOME value. The key is, when you DRAW the bitmap, make sure you tell the drawing code that if it encounters any of the background value, to NOT DRAW ANYTHING. Get it? -----Original Message----- From: Euphoria Programming for MS-DOS [mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]On Behalf Of Paul Kerslake Sent: Monday, August 28, 2000 8:43 PM To: EUPHORIA at LISTSERV.MUOHIO.EDU Subject: The Common Black Box Well, I'm sure this has been asked a billion times but, how do I get rid of the black box around BMPs? -- This is not good! How might I make the black transparent? Who programmed the idea that BMPs had to be boxes anyways? Doesn't seems like a very good idea, -Thomas ------=_NextPart_001_000A_01C011F0.E02AD2E0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><SPAN class=3D370293800-30082000><FONT face=3DArial color=3D#0000ff = size=3D2>The=20 "background" area has to be SOME value. The key is, when you DRAW the = bitmap,=20 make sure you tell the drawing code that if it encounters any of the = background=20 value, to NOT DRAW ANYTHING.</FONT></SPAN></DIV> <DIV><SPAN class=3D370293800-30082000><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D370293800-30082000><FONT face=3DArial color=3D#0000ff = size=3D2>Get=20 it?</FONT></SPAN></DIV> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px = solid; MARGIN-RIGHT: 0px"> <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT = face=3DTahoma=20 size=3D2>-----Original Message-----<BR><B>From:</B> Euphoria = Programming for=20 MS-DOS [mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]<B>On Behalf Of </B>Paul=20 Kerslake<BR><B>Sent:</B> Monday, August 28, 2000 8:43 PM<BR><B>To:</B> = EUPHORIA at LISTSERV.MUOHIO.EDU<BR><B>Subject:</B> The Common Black=20 Box<BR><BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2>Well, I'm sure this has been asked a = billion=20 times but, how do I get rid of the black box around BMPs? = </FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2> </FONT><IMG=20 style=3D"WIDTH: 135px; HEIGHT: 173px" alt=3D"" hspace=3D0=20 src=3D"cid:370293800@30082000-13b7" align=3Dbaseline border=3D0><FONT = face=3DArial=20 size=3D2> -- This is not good!</FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>How might I make the black=20 transparent?</FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Who programmed the idea that BMPs had = to be boxes=20 anyways? Doesn't seems like a very good idea,</FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV> <DIV><FONT face=3DArial = ------=_NextPart_001_000A_01C011F0.E02AD2E0-- ------=_NextPart_000_0009_01C011F0.E02AD2E0 name="fdance.bmp"