Results 1 to 6 of 6

Thread: Saving a BMP file.

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    6

    Question

    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)

  2. #2
    Lively Member
    Join Date
    Oct 1999
    Posts
    65

    Hmm...

    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

    Code:
    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
    "I'm carrying a Geometry book, but I'm not in Geometry...it's crazy...crazy man!"

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    6
    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.

  4. #4
    Lively Member
    Join Date
    Oct 1999
    Posts
    65

    Well.

    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.
    "I'm carrying a Geometry book, but I'm not in Geometry...it's crazy...crazy man!"

  5. #5
    Lively Member
    Join Date
    Oct 1999
    Posts
    65

    Angry

    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]
    "I'm carrying a Geometry book, but I'm not in Geometry...it's crazy...crazy man!"

  6. #6
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Picturebox does have a Print method!! The intellisense of VB doesn't work for this but this will work:
    Code:
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width