Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #2447

Re: VB6 Image Resizer

From GS <gs@v.invalid>
Newsgroups comp.lang.basic.visual.misc, microsoft.public.vb.general.discussion
Subject Re: VB6 Image Resizer
Date 2020-03-30 21:30 -0400
Organization A noiseless patient Spider
Message-ID <r5u6fl$4mj$1@dont-email.me> (permalink)
References <r5mjl1$g3p$1@dont-email.me> <r5trc0$qol$1@dont-email.me> <r5ttfb$6qa$1@dont-email.me> <r5u64r$h5i$1@dont-email.me>

Cross-posted to 2 groups.

Show all headers | View raw


> "GS" <gs@v.invalid> wrote
>
>>>   '--resize an image in proportion to original and paint.
>>> Public Function ResizeAndPaintGDIP(FileName As String, DesthDC As Long,
>>> DestW As Long, Interpolation As Long) As Long
>> 
>> Do I assume that DesthDC and DestW are my target sizes? How would I know  
>> this prior to loading the image to find out existing size? (file details,  
>> perhaps?)
>> 
>    No. DesthDC is destination DC. That's the handle
> for painting, which you don't want. Maybe I can clean this
> up, but I was doing it last minute today. (Now that I'm
> home all day I don't seem to have a minute to spare!)
>
>   It's confusing because I had two functions. One is
> opening a file and doing a resized paint to a picturebox.
> The other is taking bitmap bits, getting an hBitmap
> handle from that, and using the handle to save a JPG
> to disk.
>   So a lot of what you want is here but the middle step,
> resizing and ending up with an hBitmap, needs to be
> done differently. I'll try to work on it tomorrow. 

Big thanks; - much appreciated!

I'm working out getting file info via "Shell.Application"; - going well!

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

VB6 Image Resizer GS <gs@v.invalid> - 2020-03-28 00:26 -0400
  Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-28 10:04 -0400
    Re: VB6 Image Resizer Arne Saknussemm <es215.10.wannabet@spamgourmet.com> - 2020-03-28 17:17 +0100
      Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-28 14:12 -0400
      Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-28 14:43 -0400
        Re: VB6 Image Resizer Arne Saknussemm <es215.10.wannabet@spamgourmet.com> - 2020-03-29 15:48 +0200
          Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-29 10:41 -0400
          Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-29 13:30 -0400
            Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-29 13:54 -0400
              Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-29 15:36 -0400
                Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-29 16:19 -0400
                Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-29 18:40 -0400
                Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-29 18:49 -0400
                Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-29 23:17 -0400
                Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-30 07:44 -0400
                Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-30 09:52 -0400
                Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-30 12:37 -0400
                Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-30 13:35 -0400
    Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-28 14:59 -0400
      Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-28 16:39 -0400
        Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-28 17:57 -0400
        Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-28 18:44 -0400
          Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-28 22:49 -0400
            Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-29 13:22 -0400
  Re: VB6 Image Resizer "Peter T" <askmy@email.com> - 2020-03-30 17:29 +0100
    Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-30 12:34 -0400
      Re: VB6 Image Resizer "Peter T" <askmy@email.com> - 2020-03-31 10:59 +0100
        Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-31 09:43 -0400
        Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-31 12:53 -0400
  Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-30 18:20 -0400
    Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-30 18:50 -0400
    Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-30 18:56 -0400
      Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-30 21:24 -0400
        Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-30 21:30 -0400
          Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-30 22:01 -0400
            Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-30 22:11 -0400
  Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-31 17:41 -0400
    Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-31 17:51 -0400
      Re: VB6 Image Resizer "Mayayana" <mayayana@invalid.nospam> - 2020-03-31 21:08 -0400
        Re: VB6 Image Resizer GS <gs@v.invalid> - 2020-03-31 21:14 -0400

csiph-web