Results 1 to 4 of 4

Thread: fonts as bitmaps in picturebox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    New Delhi, India
    Posts
    75

    fonts as bitmaps in picturebox

    how do I convert the text printed in a picturebox to a bitmap. I have a blank picture in a picturebox. I print some text in the picturebox using print method (picture1.print). When I copy the picure to another picturebox using paintpicture methord, only the picture is copied and not the text. COuld someone please explain how to do it. thanks

  2. #2
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    When you call PaintPicture make sure you supply the source pictureboxes Image property rather than the Picture property. The Picture property simply stores whatever File you requested loaded into the Picturebox and the Image property includes everything that has been added to the PictureBox..

    VB Code:
    1. Picture2.PaintPicture Picture1.Image, 0, 0
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    New Delhi, India
    Posts
    75

    not working

    I have tried what you said, but still its not working. The result is the same.

    this is the code I wrote:

    Picture2.PaintPicture Picture1.Image, 0, 0, Picture1.Width, Picture1.Height, 0, 0, Picture1.Width, Picture1.Height

    thanks

  4. #4
    Megatron
    Guest
    Make sure the AutoRedraw property of Picture1 is set to True.

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