Results 1 to 10 of 10

Thread: Text on pictures

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    44

    Post

    Hello...

    I am trying to figure out how I can put text over a jpeg picture and then resave it.
    I would prefer a way without having to display the picture full size.

    Any ideas or direction?
    Thanks.
    Scott

  2. #2
    Hyperactive Member Gimpster's Avatar
    Join Date
    Oct 1999
    Location
    Redmond, WA 98052
    Posts
    331

    Post

    Could you be more specific? Are you trying to do this while inside your program? Or are you just trying to get a picture to use somewhere else? Please clarify.

    ------------------
    Thanks,
    Ryan
    [email protected]
    ICQ# 47799046

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    44

    Post

    I need to build a program to "brand" real estate pictures with a few word description and web address. I am familiar with
    Loadpicture... it seems Savepicture only saves in BMP. I need to save in Jpeg...

    I thought about finding a VB paint program and modifying it but haven't had much luck finding one.

    Any ideas? If this needs to be done in C++ I have Visual C++, although not very familiar with it.

    Thanks...
    Scott

  4. #4
    Hyperactive Member Gimpster's Avatar
    Join Date
    Oct 1999
    Location
    Redmond, WA 98052
    Posts
    331

    Post

    Well, I can't answer your question, there. I know that VB can open and view jpegs, however, I don't know how to edit them, or save them again in VB. You can probably do it, but it sounds like an API function to me. Send a message to Aaron Young, though, explaining your problem, he's really good, and he can probably answer your question. His email is: [email protected]

    or you could try posting this on the General VB forum. Good luck to you, I wish I could help more.

    ------------------
    Thanks,
    Ryan
    [email protected]
    ICQ# 47799046

  5. #5
    New Member
    Join Date
    Oct 1999
    Location
    no
    Posts
    5

    Post

    Set the CurrentX and CurrentY properties for the picturebox the pic is in, and then use picture1.print to put text on it...

  6. #6

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    44

    Post

    Thanks for all the advice...

    Feel like I'm making progress...tried
    picture1.print [string]
    ...it puts words on the picture, but I can't save the picture with the words on it.

    Tried researching autoredraw but no luck...
    Ideas?

    Scott

  7. #7
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    You can't do picture1.print with vb5
    Is this possible with vb6?

    You could load the picture directly onto a form and then printtext onto the form and then savepicture from there...



    ------------------
    Mark Sreeves
    Analyst Programmer

    [email protected]
    A BMW Group Company

  8. #8
    Lively Member
    Join Date
    May 1999
    Location
    Vancouver, BC, Canada
    Posts
    84

    Post

    The Kodak Image Edit Control that ships with VB permits all kinds of annotations printed over an image file. It opens JPEG's but only saves as TIFF, AWD or BMP! I believe Kodak has a more complete implementation of the thier control and I have requested more info from them.

    Does anyone have any more info on the Kodak Image Edit Control?

  9. #9

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    44

    Post

    It seems that saving jpegs in VB has an obscure solution.

  10. #10
    Lively Member
    Join Date
    May 1999
    Location
    Vancouver, BC, Canada
    Posts
    84

    Post

    Try this link: http://vbaccelerator.com/
    Click on VBMedia under Code
    Select the first item "Saving pictures to JPEG"

    The code saves a picturebox image as a jpeg but the compression settings don't seem to work.

    But, I can't get text printed on an image to save to either bmp or jpeg! Have you had any success?

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