トップページ > 過去ログ > 記事閲覧
SetTransColor with PNG file
名前:W.X. 日時: 2010/04/15 13:45

Hello.. I'm from 台湾.. :) I got a problem about SetTransColor(), for example: SetTransColor(210, 230, 210); TileImage = LoadGraph("Q:\\Tile01.png"); DrawGraph(0, 0, TileImage); The color(210, 230, 210) did not transparent when I load a 32bits png file. If I use bmp file, the color transparent correctly. ありがとうございます。

Page: 1 |

Re: SetTransColor with PNG file ( No.1 )
名前:いっち 日時:2010/04/15 23:25

Perhaps "Tile01.png" is PNG with alpha-channel. TransColor function required picture without alpha-channel. おそらく、アルファチャンネル付のPNGを使っているためだと思うのですが、 上記のような文で伝わるでしょうか・・・。 > ttp://hpcgi2.nifty.com/natupaji/bbs/patio.cgi?mode=past&no=412
Re: SetTransColor with PNG file ( No.2 )
名前:W.X. 日時:2010/04/17 18:02

I got it. Thank you いっち :) By the way, I have made Chinese_BIG5 charset showing Traditional Chinese words correctly.
Re: SetTransColor with PNG file ( No.3 )
名前:いっち 日時:2010/04/17 18:58

You're welcome. -- to Japanease -- 本文にひらがなを入れないと怒られるのですね。

Page: 1 |