Darwinbots Forum

Code center => Darwinbots Program Source Code => Topic started by: Zelos on November 15, 2005, 10:22:31 AM

Title: Picture load
Post by: Zelos on November 15, 2005, 10:22:31 AM
is it possible for VB to load pictures from picture files?
Title: Picture load
Post by: PurpleYouko on November 15, 2005, 10:32:32 AM
Yes.

Darwinbots does it for background pictures. I added that code about six months ago.

You can load a bitmap of jpg directly into the "picture" aspect of many controld like "forms", "pictureboxes", "command buttons" etc.
Title: Picture load
Post by: Zelos on November 15, 2005, 10:34:50 AM
I mean with a command, like if I have a emty picbox I can load a picture where ever I want it in there so I can load like several pics
Title: Picture load
Post by: PurpleYouko on November 15, 2005, 11:26:55 AM
See above post.

Darwinbots does it from inside the code. From the menu bar, you can load background pictures from any picture file and attach them to form1.backpic.

Check DB for the code as I can't remember it off the top of my head.
Title: Picture load
Post by: Zelos on November 15, 2005, 11:31:11 AM
ok thx, letters are made up by tiny small pixels, is it possible in anyway to, in a own program, create own letters for just that program?
Title: Picture load
Post by: PurpleYouko on November 15, 2005, 11:41:55 AM
Should be possible to create a comnplete font if you like.

Don't know how tho
Title: Picture load
Post by: Numsgil on November 15, 2005, 11:43:13 AM
I had a font editor that came with my MSVC 1.0 way back in the day.

You can probably find one freeware somewhere.
Title: Picture load
Post by: Zelos on November 15, 2005, 11:56:53 AM
ok, and how do I use it after word in my program?
Title: Picture load
Post by: Numsgil on November 15, 2005, 12:00:22 PM
Whatever text box you want to write to probably has a selector to let you pick a font.
Title: Picture load
Post by: Zelos on November 15, 2005, 12:51:46 PM
how do I install the font so I can use it?
Title: Picture load
Post by: Numsgil on November 15, 2005, 12:54:06 PM
That I'm not sure about, I've never played with it.