MIME-Version: 1.0
Content-Location: file:///C:/2CCBB24E/WindowsImageAcquisition.htm
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="us-ascii"

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office"
xmlns:w=3D"urn:schemas-microsoft-com:office:word"
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 11">
<meta name=3DOriginator content=3D"Microsoft Word 11">
<link rel=3DFile-List href=3D"WindowsImageAcquisition_files/filelist.xml">
<title>Configuration minimum : Windows XP</title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>STG_FTA_TEST</o:Author>
  <o:LastAuthor>STG_FTA_TEST</o:LastAuthor>
  <o:Revision>1</o:Revision>
  <o:TotalTime>1</o:TotalTime>
  <o:Created>2004-11-19T13:48:00Z</o:Created>
  <o:LastSaved>2004-11-19T13:49:00Z</o:LastSaved>
  <o:Pages>1</o:Pages>
  <o:Words>925</o:Words>
  <o:Characters>5278</o:Characters>
  <o:Company>STG_FTA</o:Company>
  <o:Lines>43</o:Lines>
  <o:Paragraphs>12</o:Paragraphs>
  <o:CharactersWithSpaces>6191</o:CharactersWithSpaces>
  <o:Version>11.5703</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:PunctuationKerning/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState=3D"false" LatentStyleCount=3D"156">
 </w:LatentStyles>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	color:windowtext;}
p
	{margin:4.2pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:Arial;
	mso-fareast-font-family:"Times New Roman";
	color:black;}
pre
	{margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 41=
2.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
	font-size:10.0pt;
	font-family:"Courier New";
	mso-fareast-font-family:"Times New Roman";
	color:windowtext;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
</style>
<![endif]-->
</head>

<body lang=3DEN-US style=3D'tab-interval:.5in'>
<BR><CENTER><DIV=20
style=3D"BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: =
black 1px solid; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; FONT: 13pt =
Verdana; BORDER-LEFT: black 1px solid; WIDTH: 400px; PADDING-TOP: 4px; =
BORDER-BOTTOM: black 1px solid; BACKGROUND-COLOR: yellow"><A=20
href=3D"http://www.atoutfox.org/"><B>atoutfox.org</B></A><BR><FONT=20
size=3D-2>ATOUTFOX - 2004</FONT><BR></DIV></CENTER>


<div class=3DSection1>

<p style=3D'margin-bottom:12.0pt'><span lang=3DFR style=3D'mso-ansi-languag=
e:FR'>Configuration
minimum : Windows XP<br>
<br>
Librairie requise : Windows Image Acquisition Automation Library v2.0 http:=
//www.microsoft.com/downloads/details.aspx?FamilyID=3Da332a77a-01b8-4de6-91=
c2-b7ea32537e29&amp;DisplayLang=3Den<br>
<br>
<br>
<br>
La couche 2,0 d'automation de l'acquisition d'image de Microsoft Windows (W=
IA)
est un composant de haute qualit&eacute; et complet de manipulation d'image=
 qui
fournit des possibilit&eacute;s de traitement bout &agrave; bout d'image po=
ur
Microsoft Visual Basic 6,0 ,Visual FoxPro, des pages actives de serveur (as=
p),
et des langues scripting. La couche d'automation de WIA expose des disposit=
ifs
dans le paquet 1 (SP1) de service de Windows XP ou le rendre plus tard faci=
le
d'acqu&eacute;rir des images sur les appareils-photo num&eacute;riques, les
modules de balayage, ou les appareils-photo d'encha&icirc;nement, et de
tourner, mesurer, et annoter vos dossiers d'image.<br>
<br>
<br>
<br>
Les propri&eacute;t&eacute;s du WIA :<br>
<br>
Acc&eacute;dez aux propri&eacute;t&eacute;s d&#8217;un fichier image. <br>
Lire et &eacute;crire les fichiers d'image et leurs propri&eacute;t&eacute;s
dans une base de donn&eacute;es. <br>
Modifiez les pixels incluant les valeurs alpha. <br>
&Eacute;crivez les pages d'asp qui produisent des images thumbnails. <br>
Images de prise avec votre cam&eacute;ra Web. <br>
T&eacute;l&eacute;chargez automatiquement les images des cam&eacute;ras Web
d&egrave;s qu'elles seront reli&eacute;es. <br>
<br>
<br>
Une fois que vous avez transf&eacute;r&eacute; des images &agrave; votre
ordinateur, vous pouvez employer l'objet d'ImageFile pour acc&eacute;der aux
images. Vous pouvez les montrer sur un formulaire, les renvoyer en tant que
donn&eacute;es binaires en pages d'asp, ou acc&eacute;der &agrave; leurs
propri&eacute;t&eacute;s.<br>
<br>
<br>
<br>
Exemple : Comment acc&eacute;der &agrave; un fichier image :<br>
<br style=3D'mso-special-character:line-break'>
<![if !supportLineBreakNewLine]><br style=3D'mso-special-character:line-bre=
ak'>
<![endif]><o:p></o:p></span></p>

<pre><span lang=3DFR style=3D'color:black;mso-ansi-language:FR'>Img =3D Cre=
ateObject(&quot;WIA.ImageFile&quot;)<br>
Img.LoadFile(&quot;C:WINDOWSWebWallpaperBliss.bmp&quot;)<o:p></o:p></span><=
/pre>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span lang=3DFR style=
=3D'font-size:
10.0pt;font-family:Arial;color:black;mso-ansi-language:FR'><br>
<br>
<br>
<br>
Afin de prot&eacute;ger les images d'original qui repr&eacute;sentent des
m&eacute;moires num&eacute;riques, l'objet d'ImageFile ne peut pas directem=
ent
modifier les images. Vous pouvez, cependant, employer un objet d'ImageProce=
ss
et un ou plusieurs objets de filtre pour cr&eacute;er une copie modifi&eacu=
te;e
de l'image. La couche d'automation de WIA fournit les filtres qui tournent,
renversent, cultivent, mesurent, emboutissent, modifient des
propri&eacute;t&eacute;s, modifient les diff&eacute;rents Pixel ou changent=
 le
format de dossier en format &eacute;tiquet&eacute; de dossier d'image (tiff=
),
JPEG, les graphiques portatifs de r&eacute;seau (png), la carte binaire (BM=
P),
ou les graphiques &eacute;changent le format (GIF).<br>
<br>
<br>
<b>Exemple : Comment faire la rotation d&#8217;un fichier image de 90&#9702=
;</b><o:p></o:p></span></p>

<pre><span lang=3DFR style=3D'color:black;mso-ansi-language:FR'>Local img,I=
P<br>
img =3D Createobject(&quot;WIA.ImageFile&quot;) &amp;&amp; Cr&eacute;er un =
instance de ImageFile<br>
IP =3D Createobject(&quot;WIA.ImageProcess&quot;) &amp;&amp; Cr&eacute;er u=
n instance de ImageProcess<br>
img.LoadFile(&quot;C:WINDOWSWebWallpaperBliss.bmp&quot;) &amp;&amp; Doit-et=
re un fichier valide<br>
IP.Filters.Add(IP.FilterInfos(&quot;RotateFlip&quot;).FilterID) &amp;&amp; =
Acc&eacute;der au filtre RorateFlip<br>
IP.Filters(1).Properties(&quot;RotationAngle&quot;) =3D 90 &amp;&amp; Faire=
 un rotation de 90 degr&eacute;es <br>
img =3D IP.Apply(img) &amp;&amp; Appliquer les changements<br>
img.SaveFile(&quot;C:WINDOWSWebWallpaperBliss90.bmp&quot;) &amp;&amp; Sauve=
garder sous un autre nom.<o:p></o:p></span></pre>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span lang=3DFR style=
=3D'font-size:
10.0pt;font-family:Arial;color:black;mso-ansi-language:FR'><br>
<br>
<b>Exemple : Comment cr&eacute;er un thumbnail (comment changer les dimensi=
ons
d&#8217;un fichier image)</b><o:p></o:p></span></p>

<pre><span lang=3DFR style=3D'color:black;mso-ansi-language:FR'>LOCAL img,I=
P<br>
Img =3D CreateObject(&quot;WIA.ImageFile&quot;) &amp;&amp; Cr&eacute;er un =
instance de ImageFile<br>
IP =3D CreateObject(&quot;WIA.ImageProcess&quot;) &amp;&amp; Cr&eacute;er u=
n instance de ImageProcess<br>
Img.LoadFile(&quot;C:WINDOWSWebWallpaperBliss.bmp&quot;) &amp;&amp; Doit-et=
re un fichier valide<br>
IP.Filters.Add(IP.FilterInfos(&quot;Scale&quot;).FilterID) ) &amp;&amp; Acc=
&eacute;der au filtre Scale<br>
IP.Filters(1).Properties(&quot;MaximumWidth&quot;) =3D 100<span style=3D'ms=
o-spacerun:yes'>&nbsp; </span>&amp;&amp;Changer la dimension largeur.<br>
IP.Filters(1).Properties(&quot;MaximumHeight&quot;) =3D 100 &amp;&amp;Chang=
er la dimension hauteur.<br>
Img =3D IP.Apply(Img) &amp;&amp; Appliquer les changements<br>
Img.SaveFile(&quot;C:WINDOWSWebWallpaperBlissThumb.bmp&quot;) &amp;&amp;Sau=
vegarder sous un autre <o:p></o:p></span></pre>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span lang=3DFR style=
=3D'font-size:
10.0pt;font-family:Arial;color:black;mso-ansi-language:FR'><br>
<br>
<br>
<b>Exemple : Comment combiner deux images en une.</b><o:p></o:p></span></p>

<pre><span lang=3DFR style=3D'color:black;mso-ansi-language:FR'>Img =3D Cre=
ateObject(&quot;WIA.ImageFile&quot;)<br>
Thumb =3D CreateObject(&quot;WIA.ImageFile&quot;)<br>
IP =3D CreateObject(&quot;WIA.ImageProcess&quot;)<br>
Img.LoadFile( &quot;C:WINDOWSWebWallpaperBliss.bmp&quot;)<br>
Thumb.LoadFile (&quot;C:WINDOWSWebWallpaperBlissThumb.bmp&quot;)<br>
IP.Filters.Add( IP.FilterInfos(&quot;Stamp&quot;).FilterID)<br>
IP.Filters(1).Properties(&quot;ImageFile&quot;) =3D Thumb<br>
IP.Filters(1).Properties(&quot;Left&quot;) =3D Img.Width - Thumb.Width<br>
IP.Filters(1).Properties(&quot;Top&quot;) =3D Img.Height - Thumb.Height<br>
Img =3D IP.Apply(Img)<br>
Img.SaveFile( &quot;C:WINDOWSWebWallpaperBlissStamp.bmp&quot;)<o:p></o:p></=
span></pre>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span lang=3DFR style=
=3D'font-size:
10.0pt;font-family:Arial;color:black;mso-ansi-language:FR'><br>
<br>
<b>Exemple : Comment couper (crop) un fichier image.</b><o:p></o:p></span><=
/p>

<pre><span lang=3DFR style=3D'color:black;mso-ansi-language:FR'>Img =3D Cre=
ateObject(&quot;WIA.ImageFile&quot;)<br>
IP =3D CreateObject(&quot;WIA.ImageProcess&quot;)<br>
Img.LoadFile(&quot;C:WINDOWSWebWallpaperBliss.bmp&quot;)<br>
IP.Filters.Add( IP.FilterInfos(&quot;Crop&quot;).FilterID)<br>
IP.Filters(1).Properties(&quot;Left&quot;) =3D Img.Width/4<br>
IP.Filters(1).Properties(&quot;Top&quot;) =3D Img.Height/4<br>
IP.Filters(1).Properties(&quot;Right&quot;) =3D Img.Width/4<br>
IP.Filters(1).Properties(&quot;Bottom&quot;) =3D Img.Height/4<br>
Img =3D IP.Apply(Img)<br>
Img.SaveFile(&quot;C:WINDOWSWebWallpaperBlissCrop.bmp&quot;)<o:p></o:p></sp=
an></pre>

<p class=3DMsoNormal><span lang=3DFR style=3D'font-size:10.0pt;font-family:=
Arial;
color:black;mso-ansi-language:FR'><br>
<br>
<b>Exemple: Comment obtenir les informations d&#8217;un fichier images.</b>=
<o:p></o:p></span></p>

<pre><span class=3DSpellE><span style=3D'color:black'>Img</span></span><span
style=3D'color:black'> =3D <span class=3DSpellE>CreateObject</span>(&quot;<=
span
class=3DSpellE>WIA.ImageFile</span>&quot;)<br>
<span class=3DSpellE>Img.LoadFile</span> (&quot;<span class=3DSpellE>C:WIND=
OWSWebWallpaperBliss.bmp</span>&quot;)<br>
s =3D &quot;Width =3D &quot; + TRANSFORM(<span class=3DSpellE>Img.Width</sp=
an>) + <span
class=3DSpellE>chr</span>(13) + ;<br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>&quot;Height =3D=
 &quot; + TRANSFORM(<span
class=3DSpellE>Img.Height</span>) + <span class=3DSpellE>chr</span>(13) + ;=
<br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>&quot;Depth =3D =
&quot; + TRANSFORM(<span
class=3DSpellE>Img.PixelDepth</span>) + <span class=3DSpellE>chr</span>(13)=
 + ;<br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>&quot;<span
class=3DSpellE>HorizontalResolution</span> =3D &quot; + TRANSFORM(<span
class=3DSpellE>Img.HorizontalResolution</span>) + <span class=3DSpellE>chr<=
/span>(13) + ;<br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>&quot;<span
class=3DSpellE>VerticalResolution</span> =3D &quot; + TRANSFORM(<span class=
=3DSpellE>Img.VerticalResolution</span>) + <span
class=3DSpellE>chr</span>(13) + ;<br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>&quot;<span
class=3DSpellE>FrameCount</span> =3D &quot; + TRANSFORM(<span class=3DSpell=
E>Img.FrameCount</span>) + <span
class=3DSpellE>chr</span>(13)<br>
If <span class=3DSpellE>Img.IsIndexedPixelFormat</span> <br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>s =3D s + &quot;=
Pixel data contains palette indexes&quot; + <span
class=3DSpellE>chr</span>(13)<br>
<span class=3DSpellE>EndIf</span><br>
If <span class=3DSpellE>Img.IsAlphaPixelFormat</span><br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>s =3D s + &quot;=
Pixel data has alpha information&quot; + <span
class=3DSpellE>chr</span>(13)<br>
<span class=3DSpellE>EndIf</span><br>
If <span class=3DSpellE>Img.IsExtendedPixelFormat</span> <br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>s =3D s + &quot;=
Pixel data has extended color information (16 bit/channel)&quot; + <span
class=3DSpellE>chr</span>(13)<br>
<span class=3DSpellE>EndIf</span><br>
If <span class=3DSpellE>Img.IsAnimated</span> <br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>s =3D s + &quot;=
Image is animated&quot; + <span
class=3DSpellE>chr</span>(13)<br>
<span class=3DSpellE>EndIf</span><br>
If <span class=3DSpellE>Img.Properties.Exists</span>(&quot;40091&quot;) <br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; </span>v =3D <span
class=3DSpellE>Img.Properties</span>(&quot;40091&quot;).Value<br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>s =3D s + &quot;=
Title =3D &quot; + <span
class=3DSpellE>v.String</span> + <span class=3DSpellE>chr</span>(13)<br>
<span class=3DSpellE>EndIf</span><br>
If <span class=3DSpellE>Img.Properties.Exists</span>(&quot;40092&quot;) <br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; </span>v =3D <span
class=3DSpellE>Img.Properties</span>(&quot;40092&quot;).Value<br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>s =3D s + &quot;=
Comment =3D &quot; + <span
class=3DSpellE>v.String</span> + <span class=3DSpellE>chr</span>(13)<br>
<span class=3DSpellE>EndIf</span><br>
If <span class=3DSpellE>Img.Properties.Exists</span>(&quot;40093&quot;) <br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; </span>v =3D <span
class=3DSpellE>Img.Properties</span>(&quot;40093&quot;).Value<br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>s =3D s + &quot;=
Author =3D &quot; + <span
class=3DSpellE>v.String</span> + <span class=3DSpellE>chr</span>(13)<br>
<span class=3DSpellE>EndIf</span><br>
If <span class=3DSpellE>Img.Properties.Exists</span>(&quot;40094&quot;) <br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; </span>v =3D <span
class=3DSpellE>Img.Properties</span>(&quot;40094&quot;).Value<br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>s =3D s + &quot;=
Keywords =3D &quot; + <span
class=3DSpellE>v.String</span> + <span class=3DSpellE>chr</span>(13)<br>
<span class=3DSpellE>EndIf</span><br>
If <span class=3DSpellE>Img.Properties.Exists</span>(&quot;40095&quot;) <br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; </span>v =3D <span
class=3DSpellE>Img.Properties</span>(&quot;40095&quot;).Value<br>
<span style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>s =3D s + &quot;=
Subject =3D &quot; + <span
class=3DSpellE>v.String</span> + <span class=3DSpellE>chr</span>(13)<br>
<span class=3DSpellE>EndIf</span><br>
MESSAGEBOX( s)<o:p></o:p></span></pre>

<p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:Arial;colo=
r:black'><br
style=3D'mso-special-character:line-break'>
<![if !supportLineBreakNewLine]><br style=3D'mso-special-character:line-bre=
ak'>
<![endif]></span></p>

</div>

</body>

</html>
