Usage of Sample program (Ver.7.00)                                    2018.7.27

 The sample program is made with XCode.

<Sample program(App) operation method>
Change to a directory on a sample program(App) drive using Terminal.

(1) CP95ChangeImage function

	(a)Set contrast table data
		Execute the following command.
		./App f1 /Users/user_name/image.raw 2152 1416 /Users/user_name/contrasttable.bin 0.5 1.0 20

		/Users/user_name/image.raw :Image data file (RAW file format(RGB, top-down))
		2152 :width of Image data
		1416 :high of Image data
		/Users/user_name/contrasttable.bin :Contrast table data
		0.5  :unsRad
		1.0	:unsAmo
		20  :unsThres

		Processing result :output.raw (the same directory as the sample program(App))

	(b)Set no contrast table data
		Execute the following command.
		./App f1 /Users/user_name/image.raw 2152 1416 - 0.5 1.0 20

		/Users/user_name/image.raw :Image data file (RAW file format(RGB, top-down))
		2152 :width of Image data
		1416 :high of Image data
		- : without Contrast table data
		0.5  :unsRad
		2.0	:unsAmo
		20	:unsThres

		Processing result :output.raw (the same directory as the sample program(App))


(2) CPColorChange function

	Execute the following command.
	./App f2 /Users/user_name/image.raw 2152 1416 0


	/Users/user_name/image.raw :Image data file (RAW file format(RGB, top-down))
	2152 :width of Image data
	1416 :high of Image data
	0 : printer type (0:CP3020D, 1:CP9550DW, 2:CP3020DA)

	Processing result :output.raw (the same directory as the sample program(App))


(3) CP98ChangeImage  function 

	Execute the following command. (CPAImageEffectParams structure ver.103)
	./App f3 /Users/user_name/image.raw 1868 1228 103 0 /Users/user_name/contrasttable.bin 6 257 259 1868 1228

	Execute the following command. (CPAImageEffectParams structure ver.102)
	./App f3 /Users/user_name/image.raw 1868 1228 103 0 /Users/user_name/contrasttable.bin 6 257 259 1868 1228

	/Users/user_name/image.raw:Image data file (RAW file format(RGB, top-down))
	1868 :width of Image data
	1228 :high of Image data
	103 :version
	0 :DLLColorTable (-1:none, 0:Table0)
	/Users/user_name/contrasttable.bin :Contrast table data
		*When you do not use a contrast table data, please set like CP95ChangeImage function.
	6 :Sharpness0 (-1:none, 0-9)
	257 :gamma (-1:none, 257(0x101):PGamma_1, 258(0x102):PGamma_2)
	259 :printMode (-1:none, 257(0x101): PPrintMode_1,258(0x102):PPrintMode_2,259(0x103): PPrintMode_3)
	    * It sets up only at CPAImageEffectParams structure ver.103.
	1868 :width of Print Image data
	1228 :high of Print Image data

	Processing result :output.raw (the same directory as the sample program(App))


(4) CP70ChangeImage  function  

	Execute the following command. (CPAImageEffectParams structure ver.103 and ver.102)
	./App f4 /Users/user_name/image.raw 1864 1228 103 /Users/user_name/contrasttable.bin 6 1864 1228

	/Users/user_name/image.raw:Image data file (RAW file format(RGB, top-down))
	1864 :width of Image data
	1228 :high of Image data
	103 :version
	/Users/user_name/contrasttable.bin :Contrast table data
		*When you do not use a contrast table data, please set like CP95ChangeImage function.
	6 :Sharpness0 (-1:none, 0-8)
	1864 :width of Print Image data
	1228 :high of Print Image data

	Processing result :output.raw (the same directory as the sample program(App))


(5) CP60ChangeImage  function  

	Execute the following command. (CPAImageEffectParams structure ver.103)
	./App f5 /Users/user_name/image.raw 1864 1218 103 0 /Users/user_name/contrasttable.bin
	 4 257 gammatable-file-path 257 1864 1218
 
	/Users/user_name/image.raw:Image data file (RAW file format(RGB, top-down))
	1864 :width of Image data
	1218 :high of Image data
	103 :version
	0 :DLLColorTable (-1:none, 0:Table0)
	/Users/user_name/contrasttable.bin :Contrast table data
		*When you do not use a contrast table data, please set like CP95ChangeImage function.(- : without Contrast Table data)
	4 :Sharpness0 (-1:none, 0-8)
	257 :gamma (-1:none, 257(0x101):PGamma_1, 258(0x102):PGamma_2, 
	            259(0x103):PGamma_3, 260(0x104):PGamma_4, 261(0x105):PGamma_5)
	gammatable-file-path: Gamma data file (- : without Gamma data file)
	257 :printMode (257(0x101): PPrintMode_1, 261(0x105): PPrintMode_5)
	1864 :width of Print Image data
	1218 :high of Print Image data

	Processing result :output.raw (the same directory as the sample program(App))


(6) CP80ChangeImage  function  

	Execute the following command. (CPAImageEffectParams structure ver.104)
	./App f6 /Users/user_name/image.raw 1864 1228 104 0 /Users/user_name/contrasttable.bin 4 257 gammatable-file-path 257 1864 1228 257
	/Users/user_name/gammatable1.bin /Users/user_name/gammatable2.bin 
	/Users/user_name/gammatable3.bin /Users/user_name/gammatable4.bin
 
	/Users/user_name/image.raw:Image data file (RAW file format(RGB, top-down))
	1864 :width of Image data
	1228 :high of Image data
	104 :version
	0 :DLLColorTable (-1:none, 0:Table0)
	/Users/user_name/contrasttable.bin :Contrast table data
		*When you do not use a contrast table data, please set like CP95ChangeImage function.(- : without Contrast Table data)
	4 :Sharpness0 (-1:none, 0-8)
	257 :gamma (-257 :gamma (-1:none, 257(0x101):PGamma_1, 258(0x102):PGamma_2, 
	            259(0x103):PGamma_3, 260(0x104):PGamma_4, 261(0x105):PGamma_5)
	- :Not Supported (gammatable-file-path)
	257 :printMode (257(0x101): PPrintMode_1, 260(0x104): PPrintMode_4, 261(0x105): PPrintMode_5)
	1864 :width of Print Image data
	1228 :high of Print Image data
	257 :overcoatMode ( 257(0x101):Standard, 259(0x103):Matte2 )
	/Users/user_name/gammatable1.bin : gammatable-file-path1 Gamma data file1
	                                      (- : without Gamma data file1)
	/Users/user_name/gammatable2.bin : gammatable-file-path2 Gamma data file2
	                                      (- : without Gamma data file2)
	/Users/user_name/gammatable3.bin : gammatable-file-path3 Gamma data file3
	                                      (- : without Gamma data file3)
	/Users/user_name/gammatable4.bin : gammatable-file-path4 Gamma data file4
	                                      (- : without Gamma data file4)

	Processing result :output.raw (the same directory as the sample program(App))


(7) CP90PanoramaChangeImage  function

	Execute the following command. (CPAImageEffectParams structure ver.104)
	./App f7 /Users/user_name/image.raw 1852 6036 104 0 /Users/user_name/contrasttable.bin
	 261 1852 6036
 
	/Users/user_name/image.raw:Image data file (RAW file format(RGB, top-down))
	1852 :width of Image data (1852)
	6036 :high of Image data (4232,6036)
	104 :version
	0 :DLLColorTable (-1:none, 0:Table0)
	/Users/user_name/contrasttable.bin :Contrast table data
		*When you do not use a contrast table data, please set like CP95ChangeImage function.(- : without Contrast Table data)
	261 :printMode (261(0x105): PPrintMode_5)
	1852 :width of Print Image data (1852)
		* the same value as width of Image data
	6036 :high of Print Image data (4232,6036)
		* the same value as high of Image data

	Processing result :output1.raw, output2.raw, output3.raw (the same directory as the sample program(App))
 
