Results 1 to 12 of 12

Thread: Print bitmap (bmp) file transparently

  1. #1

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Wink Print bitmap (bmp) file transparently

    Pls help me to print any bitmap file using image control transparently. I made the bmp image transparent but it has a background upon printing. tnx in advance.

  2. #2
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: Print bitmap (bmp) file transparently

    You can do this using BitBlt. Thats an easy way...
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  3. #3

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Print bitmap (bmp) file transparently

    but it has background i guess, like i did. it looks transparent in the form but the background apears when i printed it

  4. #4
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: Print bitmap (bmp) file transparently

    Yeah. You can use BitBlt to get rid of that. xD I had the same problem. Bitblt is really easy to learn as well. here is a tutorial i found on in. Try it out. (i found the tutorial on here somewhere, but dont remember where). One of them is mine (omega test) and shows you how to use bitblt, and have player control (left and right arrows). Im not sure what you are going to use the Bitmap for though. The BitBlt has the tutorial. Try it out. Hope i helped!
    Attached Files Attached Files
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  5. #5

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Print bitmap (bmp) file transparently

    tnx, i'll try this one first

  6. #6
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: Print bitmap (bmp) file transparently

    No problem. If you have any questions, just ask. =D
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  7. #7

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Print bitmap (bmp) file transparently

    is there any other way to do the same way w/o using bitblt? its vry hastle when i apply it to my id card design. I'll use that for my signature. tnx in advance

  8. #8
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: Print bitmap (bmp) file transparently

    Well, there is, but, you can't do it by printing it on the form... You would have to make an image box, or picturebox. Using Paint.net(free program), i used the Magic wand, clicked on the part i wanted to be transparent, then, hit the del button. saved it as a .gif, and opened it with vb. There is another way, but the code is really complex. Bitblt is much more smother than just using the image(when you are going to have the image move). thats all i can think of. Hope I helped!
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  9. #9

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Print bitmap (bmp) file transparently

    Can you show to me what is the other way sir?

  10. #10
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: Print bitmap (bmp) file transparently

    Go download paint.net. Its free (google search). Install it. Then, open up the picture you want to make transparent. Using the magic wand tool, select the area you want to make transparent, and hit the Deleat button. It should look lik checkers. xD Now, save as a .gif. now, when you open an image, use that .gif. you could use that in an image or picturebox.
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  11. #11

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Print bitmap (bmp) file transparently

    is bitblt effective to use when the picture box contains a lot of controls aside of a signature which is placed in an image or picturebox?

    All the controls like labels are movable within the picture box and there is a tendency that the signature can be moved anywhere within the picturebox.

  12. #12
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    Re: Print bitmap (bmp) file transparently

    well, not really, since if you move the labels, they may flicker and such. It depends. You could try both ways, and see which way you like best. What exacly are you trying to do?
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

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