Results 1 to 5 of 5

Thread: Save BitBlt Image

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2007
    Posts
    5

    Save BitBlt Image

    Hi Friends,
    Happy Chrismas to all of you.

    I Crop a Image by using the function BitBlt. Now I am trying to save the croped image in JPEG format. Is it possible.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Save BitBlt Image

    Based on your previous threads, I'm assuming this is VB6.. In which case, the answer is basically No.

    You can save to a bitmap by using SavePicture, and can then use a separate (more complex) process to convert it to JPeg - there are examples in our CodeBank/UtilityBank forums which do that.


    It is actually possible to save directly to Jpeg, but that takes a lot of code.. but you may be lucky, and be able to find a pre-written routine which does it.

  3. #3
    Hyperactive Member
    Join Date
    Jan 2006
    Location
    Pakistan
    Posts
    388

    Re: Save BitBlt Image

    Hmmf, do I have to use a dll (intel jpeg library) for that or can I do that without a dll? Any lightweight format (jpg, gif etc) would do for me.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Save BitBlt Image

    See the last line of my previous post.

  5. #5
    Hyperactive Member
    Join Date
    Jan 2006
    Location
    Pakistan
    Posts
    388

    Re: Save BitBlt Image

    Oh damnit man!
    It works.
    It works!
    IT WORKS!!!
    Oh Goodness, how grateful I am to you for this little thing, I was waiting for such a thing since ever.

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