Drawing Interaction (QTI)
The drawing interaction allows the candidate to use a common set of drawing tools to modify a given graphical image (the canvas). It must be bound to a response variable with base-type file and single cardinality. The result is a file in the same format as the original image. The relevant class is:
Data Model

Examples
This example illustrates the drawingInteraction. Notice that the RESPONSE is declared to be of type file. The drawing takes place on a required pre-supplied canvas, in the form of an existing image, which is also used to determine the appropriate size, resolution and image type for the candidate’s response.
<assessmentItem
xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2p2.xsd"
identifier="drawing"
title="La casa di Giovanni"
adaptive="false"
timeDependent="false"
>
<responseDeclaration
identifier="RESPONSE"
cardinality="single"
baseType="file"
/>
<outcomeDeclaration
identifier="SCORE"
cardinality="single"
baseType="float"
/>
<itemBody>
<p>
Read the following description of Giovanni's house and then colour
the picture accordingly.
</p>
<drawingInteraction responseIdentifier="RESPONSE">
<prompt>Il tetto è rosso e i muri sono gialli.</prompt>
<object
type="image/png"
data="images/house.png"
width="144"
height="260"
/>
</drawingInteraction>
</itemBody>
</assessmentItem>