<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://inside.digipen.edu/index.php?action=history&amp;feed=atom&amp;title=GSDP%3AGAM100%2FCProcessing%2FCP_Image_Draw%28%29</id>
	<title>GSDP:GAM100/CProcessing/CP Image Draw() - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://inside.digipen.edu/index.php?action=history&amp;feed=atom&amp;title=GSDP%3AGAM100%2FCProcessing%2FCP_Image_Draw%28%29"/>
	<link rel="alternate" type="text/html" href="https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/CP_Image_Draw()&amp;action=history"/>
	<updated>2026-06-13T13:48:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/CP_Image_Draw()&amp;diff=61763&amp;oldid=prev</id>
		<title>&gt;Kenny.mecham: New page: =CP_Image_Draw()= == Description == Draws a given CP_Image to the screen using the given size and coordinates  == Function Definition == void CP_Image_...</title>
		<link rel="alternate" type="text/html" href="https://inside.digipen.edu/index.php?title=GSDP:GAM100/CProcessing/CP_Image_Draw()&amp;diff=61763&amp;oldid=prev"/>
		<updated>2020-11-06T02:05:47Z</updated>

		<summary type="html">&lt;p&gt;New page: =CP_Image_Draw()= == Description == Draws a given &lt;a href=&quot;/index.php?title=GSDP:GAM100/CProcessing/CP_Image&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;GSDP:GAM100/CProcessing/CP Image (page does not exist)&quot;&gt;CP_Image&lt;/a&gt; to the screen using the given size and coordinates  == Function Definition == void CP_Image_...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=CP_Image_Draw()=&lt;br /&gt;
== Description ==&lt;br /&gt;
Draws a given [[GSDP:GAM100/CProcessing/CP_Image|CP_Image]] to the screen using the given size and coordinates&lt;br /&gt;
&lt;br /&gt;
== Function Definition ==&lt;br /&gt;
void CP_Image_Draw([[GSDP:GAM100/CProcessing/CP_Image|CP_Image]] image, float x, float y, float w, float h, int alpha);&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
*image- ([[GSDP:GAM100/CProcessing/CP_Image|CP_Image]]) The image that you want to draw to the screen&lt;br /&gt;
*x- (float) The x coordinate of the image in screen coordinates&lt;br /&gt;
*y- (float) The y coordinate of the image in screen coordinates&lt;br /&gt;
*w- (float) The width to draw the image in pixels&lt;br /&gt;
*h- (float) The height to draw the image in pixels&lt;br /&gt;
*alpha- (float) The alpha value to draw the image with (0-255)&lt;br /&gt;
&lt;br /&gt;
==== Return ====&lt;br /&gt;
*void- This function does not return anything&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang='c'&amp;gt;&lt;br /&gt;
CP_Image justinFace = NULL;&lt;br /&gt;
&lt;br /&gt;
void init()&lt;br /&gt;
{&lt;br /&gt;
  justinFace = CP_Image_Load(&amp;quot;./Assets/Justins_face.png&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void update()&lt;br /&gt;
{&lt;br /&gt;
  CP_Settings_Background(CP_Color_Create(255, 255, 255, 255));&lt;br /&gt;
 &lt;br /&gt;
  int width = CP_System_GetWindowWidth();&lt;br /&gt;
  int height = CP_System_GetWindowHeight();&lt;br /&gt;
&lt;br /&gt;
  CP_Image_Draw(justinFace, width / 2, height / 2, width / 2, width / 2, 255);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void shutdown()&lt;br /&gt;
{&lt;br /&gt;
  CP_Image_Free(justinFace);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Related ==                           &lt;br /&gt;
* [[GSDP:GAM100/CProcessing                               |Main Page                     ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Image                      |CP_Image                      ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Image_Load()               |CP_Image_Load()               ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Image_Free()               |CP_Image_Free()               ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Image_GetWidth()           |CP_Image_GetWidth()           ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Image_GetHeight()          |CP_Image_GetHeight()          ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Image_Draw()               |CP_Image_Draw()               ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Image_DrawAdvanced()       |CP_Image_DrawAdvanced()       ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Image_DrawSubImage()       |CP_Image_DrawSubImage()       ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Image_CreateFromData()     |CP_Image_CreateFromData()     ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Image_Screenshot()         |CP_Image_Screenshot()         ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Image_GetPixelData()       |CP_Image_GetPixelData()       ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Image_GetPixelBufferSize() |CP_Image_GetPixelBufferSize() ]]&lt;br /&gt;
* [[GSDP:GAM100/CProcessing/CP_Image_UpdatePixelData()    |CP_Image_UpdatePixelData()    ]]&lt;/div&gt;</summary>
		<author><name>&gt;Kenny.mecham</name></author>
	</entry>
</feed>