From Web to image control

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
quartz565
Posts: 474
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Has thanked: 119 times
Been thanked: 12 times
Contact:

Re: From Web to image control

Post by quartz565 » Wed Nov 08, 2017 10:39 am

Thanks Krzysztof,
Yes now it ok !!
Best Regards,
Nikos.

os: Windows Server 2012 - 64
hw: HP Server E5606, 2.13GHz, 8.00 GB - Intel Xeon CPU

KDJ
Posts: 182
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 200 times

Post by KDJ » Tue Nov 28, 2017 9:27 pm

I improved the example.
Added:
- detection of images in <a> tags,
- context menu in image list,
- option "Save all".

ImageFromWeb.zip
(5.81 KiB) Downloaded 30 times


User avatar
quartz565
Posts: 474
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Has thanked: 119 times
Been thanked: 12 times
Contact:

Post by quartz565 » Sat Dec 02, 2017 8:58 pm

Thanks Krzysztof,
It is really Excellent !!!

Niko
Best Regards,
Nikos.

os: Windows Server 2012 - 64
hw: HP Server E5606, 2.13GHz, 8.00 GB - Intel Xeon CPU

User avatar
quartz565
Posts: 474
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Has thanked: 119 times
Been thanked: 12 times
Contact:

Post by quartz565 » Sat Dec 02, 2017 9:26 pm

another question Krzysztof... :|
Is it possible to see the information of the size of an image before we download it,
if we have two identical (which happens in my case) ?

Niko
Best Regards,
Nikos.

os: Windows Server 2012 - 64
hw: HP Server E5606, 2.13GHz, 8.00 GB - Intel Xeon CPU

KDJ
Posts: 182
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 200 times

Post by KDJ » Sun Dec 03, 2017 9:26 pm

quartz565 wrote:
Sat Dec 02, 2017 9:26 pm
Is it possible to see the information of the size of an image before we download it,
It seems to me that there is no such possibility.

User avatar
quartz565
Posts: 474
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Has thanked: 119 times
Been thanked: 12 times
Contact:

Post by quartz565 » Mon Dec 04, 2017 12:04 pm

Οf course I understand Krzysztof.
Thank you again!
Best Regards,
Nikos.

os: Windows Server 2012 - 64
hw: HP Server E5606, 2.13GHz, 8.00 GB - Intel Xeon CPU

User avatar
andyglezl
Posts: 858
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 7 times
Been thanked: 25 times
Contact:

Post by andyglezl » Mon Dec 04, 2017 3:42 pm

Is it possible to see the information of the size of an image before we download it,
Por lo que veo, en cTmpFile ya lo tienes descargado, entonces de ahí tomarlo.
No lo he probado, pero quizá de esta forma se pueda...
*------------------------------------------------------------------------
From what I see, in cTmpFile already have it downloaded, then take it.
I haven't tried it, but maybe this way you can ...



BT_BitmapWidth (hBitmap) Return the width of the specified bitmap in pixels.
hBitmap: is a handle to bitmap.


BT_BitmapHeight (hBitmap) Return the height of the specified bitmap in pixels.
hBitmap: is a handle to bitmap.


SAMPLE:
BT_BitmapWidth( Form_1.Image_1.HBITMAP )
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
quartz565
Posts: 474
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Has thanked: 119 times
Been thanked: 12 times
Contact:

Post by quartz565 » Tue Dec 05, 2017 12:57 pm

Thanks a lot Andy.
Krzystof’s sample does that already. You can see the dimensions in the bottom right corner. I was thinking about “knowing” the dimensions before downloading the image.

Muchas gracias Andy.
La muestra de Krzystof ya lo hace. Puedes ver las dimensiones en la esquina inferior derecha. Estaba pensando en "conocer" las dimensiones antes de descargar la imagen.

Niko
Best Regards,
Nikos.

os: Windows Server 2012 - 64
hw: HP Server E5606, 2.13GHz, 8.00 GB - Intel Xeon CPU

Post Reply