-->![Create Create](/uploads/1/2/6/2/126247359/751799056.jpg)
This topic provides examples that show how to use each of the filters available with the Windows Image Acquisition (WIA) Automation Layer.
Windows XP How To Create A Compressed Zipped Folder. Windows XP & Windows 7 Help.
These examples need to be inserted into template code to form complete samples. For the appropriate code template for your preferred development environment, see Getting Started with Samples. See also Shared Samples and the individual reference pages for additional sample code.
RotateFlip Filter: Rotate a Picture
The following shows how to use the RotateFlip filter to rotate one of the sample pictures from Windows XP 90 degrees.
Crop Filter: Crop a Picture
The following shows how to use the Crop filter to crop 25 percent of the Top, Left, Bottom, and Right of one of the sample pictures from Windows XP.
Scale Filter: Resize an Image
The following shows how to use the Scale filter to create a thumb-sized version of one of the sample pictures from Windows XP.
Stamp Filter: Stamp a Picture Over Another Picture
The following shows how to stamp the thumb-sized picture created in the previous example on top of the full-sized version of one of the sample pictures from Windows XP.
EXIF Filter: Write a New Title Tag to an Image
The following example shows how to write a Title tag to a new version of one of the sample pictures from Windows XP. You can view the Title tag by right-clicking the image, clicking Properties, and clicking the Summary tab. This example uses the Exchangeable Image File (EXIF) filter.
Frame Filter: Create a Multipage TIFF from Three Pictures
The following example shows how to create a multiframe (multipage) Tagged Image File Format (TIFF) file from three of the sample pictures from Windows XP, and then create a bitmap (BMP) file from the last frame. This example uses the Frame filter.
Note
TIFF is the only format that supports saving multiple frames. If you want to preserve the frames of an animated Graphics Interchange Format (GIF) you can create a filter chain with a single Convert filter to convert the animated GIF to a TIFF. For an example that uses the Convert filter, see Convert Filter: Create a Compressed JPEG File from Another File.
ARGB Filter: Create a Modified Version of an Image
The following example shows how to create a version of one of the sample pictures from Windows XP with bright pink diagonal lines. The example uses the ARGB filter.
Note
This operation can be slow on certain computers.
Convert Filter: Create a Compressed JPEG File from Another File
The following example shows how to create a compressed JPEG version of one of the sample pictures from Windows XP. The example uses the Convert filter.
![Create Create](/uploads/1/2/6/2/126247359/751799056.jpg)
Compressed ’zip’ files are widely used as they pack one or more computer files into a single file or folder which takes up less space. It can be a very useful way of sending or storing files. You’ll need to unzip them to extract the contents inside. Our short guide explains how to do this.
Jack Schofield | 9th September 2010
Zip files are very common on the internet. You can recognise them because they all end with the ‘.zip’ file extension.
What zip does
Zip is an archiving system that packs together one or more computer files into a single file or folder that takes up less space than the originals. If you want to email someone a collection of files, it’s easier to zip them all into one file first. If you want to keep files private, archiving them allows you to encrypt them and add a password to protect them.
Although zip may not be the best archiving system, it’s one that most operating systems know how to handle. The format became ubiquitous in the 1990s thanks to the popularity of the WinZip program, which is now owned by Corel.
How to zip or unzip a file
If you have a zip file and you want Windows XP to unzip it, right-click the file and select ’Extract All’. This should bring up the ’Compressed (zipped) Folders Extraction Wizard’. To extract the file or files, click ‘Next’ and select a directory or folder where the wizard can send the files.
If you want Windows XP to zip a file or a folder, right-click it and choose a ‘Compress’ item. Mac OS X works in much the same way, calling it ‘Archive’ instead of ‘Compress’.
Alternatively, you can right-click inside Windows Explorer, select ‘New’, create a zip file, and give it a suitable name. Next, use your mouse to select the files or folders you want to compress, hold down the left mouse-button, drag the files to your zip file and drop them on top of it. Repeat this as many times as you like - Windows will add the files to your zip file.
You can also use ’drag-and-drop’ to extract files from a compressed folder by dragging them to a different folder or to your desktop. Windows will uncompress them automatically.
Compress to save space
People often compress files to save disk space. Some files can be compressed a lot, and this is true of Microsoft Office’s old Word .doc and PowerPoint .ppt files. (The new Microsoft Office file formats already have zip files inside.)
Some types of file cannot be compressed much more, including MP3 music files and photos in the JPG (jpg) format. Sometimes ’compressed’ folders of these files can be slightly bigger than the originals.
Most people prefer to download a separate archiving program - these are more powerful and easier to use. The free ones for Windows include 7-Zip, PeaZip and IZArc. Most programs, including WinZip, will handle many different archiving formats.
The shareware program WinRAR is efficient and is often used for compressing multimedia files including movies. It can handle the RAR, ZIP, CAB, ARJ, LZH, ACE, TAR, GZip, UUE and ISO formats, amongst others.
Jack Schofield
Jack Schofield is a technology journalist and blogger who covered IT for the Guardian from 1983 to 2010. Before specialising in computing, he edited a number of photography magazines and books.