Can u put PNG PICS IN TURING ?????
Author |
Message |
livingheaven

|
Posted: Sun Mar 28, 2010 3:43 pm Post subject: Can u put PNG PICS IN TURING ????? |
|
|
i couldnt put png pics in turing, it says that it does not support
is there a way to do this ?
any help is great
thx |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
TheGuardian001
|
Posted: Sun Mar 28, 2010 3:45 pm Post subject: Re: Can u put PNG PICS IN TURING ????? |
|
|
Well, it doesn't support them... so no.. because it doesn't support them...
You could technically write your own loader method for them, but honestly it's probably less work to just save them as a different format. |
|
|
|
|
 |
USEC_OFFICER

|
Posted: Sun Mar 28, 2010 5:10 pm Post subject: RE:Can u put PNG PICS IN TURING ????? |
|
|
Do either .JPEGS with really low (Good quality) compression, or .bmps instead. |
|
|
|
|
 |
livingheaven

|
Posted: Sun Mar 28, 2010 5:24 pm Post subject: Re: Can u put PNG PICS IN TURING ????? |
|
|
right now im making a game and i want my character's pic to be transparrent so the white part doesnt show up on screen, tried using picMerge but still there are some white spots ..  |
|
|
|
|
 |
TheGuardian001
|
Posted: Sun Mar 28, 2010 5:29 pm Post subject: Re: Can u put PNG PICS IN TURING ????? |
|
|
Those would be spots that aren't actually white. They might look very close to white, but they're off by enough for the computer to notice.
I believe GIF has transparency support, however I'm not sure that Turing will read them as transparent. Either smooth out the white parts on your image to ensure they really are white (or use a colour that blends in to the edges the part of the image you want), or check and see if Turing will draw GIFs with transparency. |
|
|
|
|
 |
Euphoracle

|
Posted: Sun Mar 28, 2010 6:17 pm Post subject: RE:Can u put PNG PICS IN TURING ????? |
|
|
If you use a bmp with a black background, I think picMerge will remove it. Worst comes to worst, you can use a gif. Keep in mind that turing only supports a 1-bit alpha channel when drawing images. If you want like 50% transparency or something, you cannot do that without writing your own wrapper to blend the colors (and that is REALLY SLOW) |
|
|
|
|
 |
copthesaint

|
Posted: Sun Mar 28, 2010 6:18 pm Post subject: Re: Can u put PNG PICS IN TURING ????? |
|
|
There are a couple of things you can do depending on the time and effort you will spend on this.
Way #1:
make to pictures of type bmp, one picture in 1 bit Bmp, and the other picture in 8 bit bmp. Make sure both pictures are the same size, then draw your picture on the 8 bit bmp. On the second 1 bit bmp, the parts that you want to see of the 8 bit picture will be white, and the parts you dont want to see will be black. When you have finished drawing you pictures, save the 8 bit bmp as picture and save the 1 bit bmp as picture_Alpha. Open turing copy this.
Turing: |
var pic1, pic2 , pic : int
pic1 := Pic.FileNew ("picture.bmp")
Pic.Draw (pic1, 0, 0, picCopy)
Pic.Free(pic1 )
pic2 := Pic.FileNew ("picture_Alpha.bmp")
Pic.Draw (pic2, 0, 0, picMerge)
for i : 0.. Pic.Width(pic2 )
for j : 0.. Pic.Height (pic2 )
if View.WhatDotColor (i,j ) = black then
Draw.Dot (i,j, white)
end if
end for
end for
pic := Pic.New (0, 0, Pic.Width(pic2 ), Pic.Height (pic2 ))
|
Way #2: Open your picture in paint and save the pictures as 256 color bitmap then open it as normal and use picMerge.
Way #3: Make a Gif of your picture, what every parts that you dont want to show, DELETE EM! then open as normal, dont have to use picMerge for this 1
There are many other ways of doing this. If you have a brain and arnt a lazy s*** im sure you can think of one instead of waiting for us to spoon feed you :/ lol
Edit: I guess I typed this too long, the post above already mentioned the 1 bit bmp. |
|
|
|
|
 |
livingheaven

|
Posted: Sun Mar 28, 2010 6:36 pm Post subject: Re: Can u put PNG PICS IN TURING ????? |
|
|
thx  |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
|
|