Page 4 of 4

Re: From Web to image control

Posted: Wed Nov 08, 2017 10:39 am
by quartz565
Thanks Krzysztof,
Yes now it ok !!

Re: From Web to image control

Posted: Tue Nov 28, 2017 9:27 pm
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

Re: From Web to image control

Posted: Wed Nov 29, 2017 7:04 am
by mol
Great sample!
You can test it with below address ;-)
https://kobieta.onet.pl/moda/one-nie-no ... mi/z4n9b7y

Re: From Web to image control

Posted: Sat Dec 02, 2017 8:58 pm
by quartz565
Thanks Krzysztof,
It is really Excellent !!!

Niko

Re: From Web to image control

Posted: Sat Dec 02, 2017 9:26 pm
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

Re: From Web to image control

Posted: Sun Dec 03, 2017 9:26 pm
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.

Re: From Web to image control

Posted: Mon Dec 04, 2017 12:04 pm
by quartz565
Οf course I understand Krzysztof.
Thank you again!

Re: From Web to image control

Posted: Mon Dec 04, 2017 3:42 pm
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 )

Re: From Web to image control

Posted: Tue Dec 05, 2017 12:57 pm
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