PDA

Click to See Complete Forum and Search --> : Saving a BMP file.


Sattath
Apr 17th, 2000, 10:00 PM
Hi,
I need to write words to a new BMP or GIF file and then save it. I can't find a way to do that. If you could show me how or point me to a source for something like "paint-brush" in VB it would be a great help.

Thanks, Or Sattath (I'm sorry for my English)

Apollo
Apr 17th, 2000, 11:39 PM
I know how to save a bitmap, GIF though, that's a whole 'nother story. To save a bitmap, I believe all you have to do is say


savepicture <Image's Source, I used the .image part of a picturebox>, <The drive location you want to save it to>


That will do it I believe.

I just remembered I made a program that can do this, here: http://members.tripod.com/kokiri/ANSELMODraw.zip

Sattath
Apr 18th, 2000, 01:51 AM
Well, thanks a lot.
Yet, I have another problem. I want to write letters on my picture. It seems like I can only draw on the Picture Object, and there is no method like Print for this object.

Thanks, Or.

Apollo
Apr 18th, 2000, 02:22 AM
Yeah, I guess you could use print, but determining the top and left of where to put the text would be something I haven't tried dealing with. Hmm... Lemme' try it.

Apollo
Apr 18th, 2000, 02:49 AM
Wait I got it to work! :)

Download the same old program, and it will be included this time around. I finally get to make an update.... :) :) :)

(The only problem though, is that it only works one time, after that the .Print method places the text too far down)

[Edited by Apollo on 04-18-2000 at 03:51 PM]

Frans C
Apr 21st, 2000, 09:02 AM
Picturebox does have a Print method!! The intellisense of VB doesn't work for this but this will work:

Private Sub Command1_Click()
With Picture1
.CurrentX = 100
.CurrentY = 500
With .Font
.Name = "Arial"
.Size = 10
.Bold = True
.Italic = True
End With
End With
Picture1.Print "Hello Sattath"
End Sub