Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Click here to join us on IRC (#charas on irc.freenode.net)!
Charas-Project
»
Off-Topic
»
Archive
»
Really Old Stuff
»
Charas.EX
(Moderator:
GPI
) »
Transparent BitBlt without masks
« previous
next »
Print
Pages: [
1
]
Author
Topic: Transparent BitBlt without masks (Read 2906 times)
Osmose
So freakin' inactive
Royal
Posts: 3,041
Transparent BitBlt without masks
«
on:
August 16, 2005, 02:49:28 AM »
While perusing through Lucky's VB Gaming Site, I came upon
this tutorial
. It shows how you can bitblt something and set the background color to be the transparent color.
As for how this applies to Charas.EX, it should be obvious. By using the methods described in the tutorial, you no longer have to worry about making masks for every resource if you use bitblt. Users can import their own resources, and it makes making resource packadges a whole lot easier - simply packadge the images up however you want to, and have them unzip - no special formatting.
Also, I noticed you said something about not wanting to use an external DLL to import PNGs. I'm really too lazy to find where you said that, but why don't you want to? The only extra thing would be the include statement for the procs you'd be using, and that's simple.
Logged
Hrm.
GaryCXJk
<strong>Official Charas.EX Team Member</strong>
Exemplar
Posts: 1,586
FOUR OH FOUR'D
(No subject)
«
Reply #1 on:
August 16, 2005, 11:02:33 PM »
I don't want an extra DLL because I then have an extra file, with functions I mostly don't use anyway.
Anyway, now it's finally set. Charas.EX will use VisualBasic.
Also, did anyone ever noticed that I made a survey? It's only for your sake, to improve the program.
Logged
Play it now!
Charas Breakout DX
Area91: for MUGEN and RPG Maker VX Ace stuff
Drighton
Acolyte
Posts: 419
(No subject)
«
Reply #2 on:
August 17, 2005, 03:25:51 PM »
Well Gary, I'm officially extending my hand to help in any way I can (since I'm kinda doing it unofficially :p )
Anyway, the source code I'm about to send you shows the use of a DLL (VERY SIMPLE) to save the image in a picture box as a PNG file.
Obviously, all you have to do is construct the Charset in the picture box (as I show in the example) using BitBlt.
And Moose, I was just about to start looking for a BitBlt without masks example (I knew I had seen it somewhere). Thanks.
Personally, I think the DLL files are a small price to pay.
So, heads up Gary, Email on the way.
Logged
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Off-Topic
»
Archive
»
Really Old Stuff
»
Charas.EX
(Moderator:
GPI
) »
Transparent BitBlt without masks