(1). Functions
A sample program that demonstrates image format conversion.Supported formats: conversion between bmp jpeg gif tiff png wmf and others
(2). Image example
(2). Code (the entire background code)
Using system;Using system. drawing;Using system. collections;Using system. componentmodel;Using system. Windows. forms;Using system. Data;Using system. IO;
Source:
Http://www.yesky.com/SoftChannel/72342371928702976/20040717/1831984.shtml
Use GDI + in VC to convert image types in memory
Microsoft's new GDI + feature is powerful. This article only discusses image conversion, and points out its shortcomings.Supports conversion of image types: BMP, Dib, PNG, GIF,
Supports conversion of image types: BMP, Dib, PNG, GIF, JPEG/jpg, Tiff, and EMF. The following are detailed steps.
First, call diplus. Lib statically in stdafx. H, that is, the compiling system loads the DLL and uninstalls the DLL encoding when the application ends. As follows:
# Ifndef ulong_ptr# Define ulong_ptr unsigned long *# Include "gdiplus. H"Using namespace gdiplus;# Pragma comment (Lib,
It is very easy to convert the value of a text box into an image. The main. Net class library used is:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
System. drawing;
It's easy to read first.CodeRight:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Protected
Void
Btnconvert_click (
PDF is an electronic document format, what to do if the file you are working with IS in PDF format when you encounter a document that you want to convert to a picture?Generally for easy viewing, it is a picture that turns a document into a JPEG format. Relatively simple, can be converted to JPG via an online PDF. The online conversion operation is only a few steps, after you go to the
Before the image format conversion, the output phpinfo () to view the PHP library information, to see if the GD extension Library is open, if not opened, opened the php.ini file, Use the Find tool to find Extension=php_gd2.dll, Extension=php_ Gd2.dll the ";" in front of you.Here the conversion to JPG format is required for JPEG support, PNG supports PNG support, corresponding to check the format of the firs
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.