<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="fpic" module="max" category="U/I">
	<digest>
		Display an image
	</digest>
	<description>
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			U/I
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				read Changes File, offset Changes Visible Area
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="matrix">
			<digest>
				out
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<palette category="Images, Interface" action="fpic" pic="fpic.svg" />
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="OBJARG_NAME" type="OBJARG_TYPE" optional="0">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Output as matrix
			</digest>
			<description>
				The image loaded by fpic will be sent via the outlet as a matrix in response to a <m>bang</m>.
			</description>
			<attributelist>
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="7.0.0" />
			</attributelist>
		</method>
		<method name="(drag)">
			<digest>
				Drag-and-drop picture loading
			</digest>
			<description>
				When a image file is dragged from the Max File Browser to an <o>fpic</o> object, the image will be loaded.
			</description>
		</method>
		<method name="noscale">
			<arglist />
			<digest>
				Disable image scaling
			</digest>
			<description>
			</description>
		</method>
		<method name="(mouse)">
			<digest>
				Offset picture coordinates
			</digest>
			<description>
				In an unlocked patcher, you can change the offset of the picture by holding down the Shift and Command keys on Macintosh or Shift and Control keys on Windows and dragging on <o>fpic</o>; the current offset of the picture is shown in the Assistance portion of the patcher window as you drag.
			</description>
		</method>
		<method name="pict">
			<arglist>
				<arg name="filename" optional="0" type="list" />
			</arglist>
			<digest>
				Load a new image
			</digest>
			<description>
				The word <m>pict</m>, followed by the name of a graphics file in Max's search path, opens the file and displays the picture, replacing whatever picture was previously displayed. The <o>fpic</o> object accepts PNG files and, if QuickTime Version 7.1 or later is installed, other picture file formats that are listed in the QuickTime appendix.
			</description>
		</method>
		<method name="offset">
			<arglist>
				<arg name="horizontal" optional="0" type="int" />
				<arg name="vertical" optional="0" type="int" />
			</arglist>
			<digest>
				Adjust image coordinates
			</digest>
			<description>
				The word <m>offset</m>, followed by two numbers, specifies the number of pixels by which the left upper corner of the picture is to be offset horizontally and vertically from the left upper corner of the <o>fpic</o> box. By default the left upper corner of the picture is located at the left upper corner of <o>fpic</o> (that is, with an offset of 0,0). With successive slightly different <m>offset</m> messages, a picture can be moved inside <o>fpic</o>, and <o>fpic</o> can window different portions of a large picture. (In order to give the appearance of smooth transitions when moving an image, the old image is not erased when using the <m>offset</m> message. This may cause an undesired appearance if your picture contains a blank background that doesn't cover up what's beneath it.)
			</description>
		</method>
		<method name="read">
			<arglist>
				<arg name="filename" optional="0" type="list" />
			</arglist>
			<digest>
				Load a new image
			</digest>
			<description>
				The word <m>read</m>, followed by a symbol which specifies a filename, looks for a QuickTime graphic file with that name in Max's file search path, and opens it if it exists, displaying it in a graphic window. If the filename contains any spaces or special characters, the name should be enclosed in double quotes or each special character should be preceded by a backslash (<m>\</m>). The word <m>read</m> by itself puts up a standard Open Document dialog box and displays the common graphics files supported by QuickTime.
			</description>
		</method>
		<method name="readany">
			<arglist>
				<arg name="filename" optional="0" type="list" />
			</arglist>
			<digest>
				Load a new file without file filtering
			</digest>
			<description>
				The word <m>readany</m>, followed by a symbol which specifies a filename, functions in the same manner as the read message, except that the Open Document dialog box does not filter its display by the currently supported filetypes.
			</description>
		</method>
		<method name="rect">
			<arglist>
				<arg name="horizontal" optional="0" type="int" />
				<arg name="vertical" optional="0" type="int" />
				<arg name="width" optional="0" type="int" />
				<arg name="height" optional="0" type="int" />
			</arglist>
			<digest>
				Set the display size
			</digest>
			<description>
				The word <m>rect</m>, followed by four numbers that specify the size of scaling rectangle to apply to fit the input image within, loads the graphics file from disc into RAM and displays it. The first two numbers specify the placement in the graphic window as offset values, and the second two numbers specify the width and height, in pixels, of the rectangle.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="alpha" get="1" set="1" type="float" size="1">
			<digest>
				Transparency
			</digest>
			<description>
				Sets the transparency of the displayed image. The range is a floating point value in the range 0. (transparent) to 1.0 (opaque).
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Appearance" />
				<attribute name="default" get="1" set="1" type="float" size="1" value="1." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Transparency" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
		<attribute name="autofit" get="1" set="1" type="int" size="1">
			<digest>
				Automatic scaling flag
			</digest>
			<description>
				Toggles the ability to automatically scale a loaded image file to fit the <o>fpic</o> object's display area.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Value" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Scale to Box" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="destrect" get="1" set="1" type="float" size="4">
			<digest>
				Destination rectangle for image display
			</digest>
			<description>
				Specifies the left-top and bottom-right positions of the loaded graphic image. If these values do not correspond to the size of the graphic image, the image will be scaled to fit the current <o>fpic</o> window size.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Value" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Destination Rectangle" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rect" />
			</attributelist>
		</attribute>
		<attribute name="embed" get="1" set="1" type="int" size="1">
			<digest>
				Patcher embedding flag
			</digest>
			<description>
				Toggles the ability to embed the graphic you are using and save it as part of the main patch. The default behavior is 0 (don't save the image with the patcher file).
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Embed Image in Patcher" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="forceaspect" get="1" set="1" type="int" size="1">
			<digest>
				Fixed Aspect Ratio
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Value" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="7.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Fixed Aspect Ratio" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="pic" get="1" set="1" type="symbol" size="1">
			<digest>
				Image filename
			</digest>
			<description>
				Designates the pathname of the graphic file for the <o>fpic</o> to use.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Value" />
				<attribute name="default" get="1" set="1" type="symbol" size="1" value="&lt;none&gt;" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Image File" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="imagefile" />
			</attributelist>
		</attribute>
		<attribute name="xoffset" get="1" set="1" type="float" size="1">
			<digest>
				Horizontal offset
			</digest>
			<description>
				Specifies the number of pixels by which the upper left corner of the subpatch is to be offset horizontally within the <o>fpic</o> object's viewing window.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Value" />
				<attribute name="default" get="1" set="1" type="float" size="1" value="0." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Source X Offset" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
		<attribute name="yoffset" get="1" set="1" type="float" size="1">
			<digest>
				Vertical offset
			</digest>
			<description>
				Specifies the number of pixels by which the upper left corner of the subpatch is to be offset vertically within the <o>fpic</o> object's viewing window.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Value" />
				<attribute name="default" get="1" set="1" type="float" size="1" value="0." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Source Y Offset" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="fpic.png" caption="Place a picture in a patch (for the sheer beauty of it)... ...or make it functional by placing ubutton objects over it... Make a slide show by changing pictures, or move a picture by changing its offset" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="imovie" />
		<seealso name="lcd" />
		<seealso name="matrixctrl" />
		<seealso name="panel" />
		<seealso name="pictctrl" />
		<seealso name="pictslider" />
		<seealso name="ubutton" />
	</seealsolist>
	<discussion>
		We recommend using files with the PNG file format, though other common file formats such as JPG will also work on all platforms.
	</discussion>
</c74object>
