From Web to image control

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: From Web to image control

Post by quartz565 »

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

os: Windows Server 2019 - 64
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: From Web to image control

Post by KDJ »

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 257 times
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: From Web to image control

Post by quartz565 »

Thanks Krzysztof,
It is really Excellent !!!

Niko
Best Regards,
Nikos.

os: Windows Server 2019 - 64
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: From Web to image control

Post by quartz565 »

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 2019 - 64
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: From Web to image control

Post by KDJ »

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: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: From Web to image control

Post by quartz565 »

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

os: Windows Server 2019 - 64
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: From Web to image control

Post by andyglezl »

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: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: From Web to image control

Post by quartz565 »

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 2019 - 64
Post Reply