Home > Software engineering >  VB images to import a web page picture box
VB images to import a web page picture box

Time:11-14

Search the contents of the text, and then search the pictures into the picture

Now the main problem is how to search to the address on the picture images, images of address is not fixed

Or search from the browser's temporary folder, the problem is the VB to identify less than temporary folder

CodePudding user response:

Do you want to load on the disk image file and display?
Still want to load the picture of the network address displayed?
A: what's your search? Don't know the enumeration method of address still don't know the string retrieval method?

CodePudding user response:

Browser automatically search the content of the text, and then to search the page images into the picture


Or directly open the web page, and then from the browser's temporary folder to find, but temporary folder VB can't identify, can only use the API, but I will not use the API

CodePudding user response:

You'd better send out original requirements, you have your own half may be analyzed convoluted, did you see the halo around all above 16 years,

CodePudding user response:

If your goal is to achieve the VB check network images, then can be divided into two techniques to achieve such a view:
1, the network technology:
VB can be used to obtain image data, existing network operation module XMLHTTP can directly download the file content of the HTTP protocol, such as image url, direct download can get pictures of binary data, you can save these binary data directly to disk may also directly convert the binary data to graphic display data types,
If you are familiar with the network technology, of course, also can make image data using WinSock control network communication, of course, with the Socket API can also, just myself to do big workload, but the improvement of network technology is helpful to you,
2, graphics technology, developed in the Windows of about four things pretty graphics and the mainstream at the bottom of the image processing technology, is a GDI, one is GDIPlus (GDI +), as well as DirectX and OpenGL, for real images, GDIPlus is optimization technology, because it supports the format is more, also easy to use,

If you want to enumerate what browser cache folder, then your application needs to have enough permissions, the general is the right to access the application is running, but on the other hand, if your application has a corresponding permission (such as modifying the target directory permissions have run your application permissions), so also feel free to visit,
  • Related