Let's take a look at this image conversion function. Why is it normal when BMP is converted to JPG? When JPG is converted to JPG, Delphi doesn't know it. Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiMultimedia/html/delphi_20061024164425208.
The previous article introduced how to parse the size of JPG images by using Windows Phone. This article describes how to parse the size of JPG images because the format of JPG images is much more complex than that of png images, therefore, first,
Start with a C/C ++ source code and convert the image format in the main () function ~
// C/C ++ code# Include # Include # Include Using namespace gdiplus;
Int getencoderclsid (const wchar * format, CLSID * pclsid); // helper Function
Int main
PHP converts the image format to JPG and automatically scales to the specified size. Recently, when I changed my website to a friend, I found that some of my website images are in PNG format, and the image files are very large, almost all of them
JPG
1. jpg full name should be JPEG JPEG images store a single grating image in 24-bit color. JPEG is a platform-independent format that supports the highest level of compression. However, this compression is lossy. Gradient JPEG files
function:
1. Limit extension: jpg only | | JPG and GIF
2. Limit picture size: K is the unit
3. Limit picture width High: PX as unit (either have, or none)
4. Limit damaged pictures (no preview pictures)
5. Limit the pictures that have changed the
// C # Get jpg image size and inch resolution quicklyPublic static int getJpgSize (stringFileName, out Size JpgSize, out float Wpx, out float Hpx){// C # Get jpg image size and inch resolution quicklyJpgSize = new Size (0, 0 );Wpx = 0; Hpx = 0;Int
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.