I'm using the Camera example to take pictures to a Panel. The example uses the line
out.WriteBytes(Data, 0, Data.Length)
which results in a file type of JPG. I understand from reading through the forums that the JPG and PNG formats are supported natively, and wanted to write PNG files (I suspect they'll be smaller).
The original defines Filename (string) as "0001.jpg",
out = File.OpenOutput(File.DirRootExternal, FileName, False)
So, thinking native support = just rename, I set FileName to "0001.png". It's still a jpg. Hmmm.
The examples I've seen which specify PNG output use .writetostream, but the action isnt supported:
panel1.WriteToStream(out, 100, "PNG")
The camera (from the example Camera.zip) is loading to the panel, thus:
camera1.Initialize(Panel1, "Camera1")
Do I need a Canvas, or load the camera to a bitmap, or...? So confused. Any clarification would be appreciated!
:sign0104:
out.WriteBytes(Data, 0, Data.Length)
which results in a file type of JPG. I understand from reading through the forums that the JPG and PNG formats are supported natively, and wanted to write PNG files (I suspect they'll be smaller).
The original defines Filename (string) as "0001.jpg",
out = File.OpenOutput(File.DirRootExternal, FileName, False)
So, thinking native support = just rename, I set FileName to "0001.png". It's still a jpg. Hmmm.
The examples I've seen which specify PNG output use .writetostream, but the action isnt supported:
panel1.WriteToStream(out, 100, "PNG")
The camera (from the example Camera.zip) is loading to the panel, thus:
camera1.Initialize(Panel1, "Camera1")
Do I need a Canvas, or load the camera to a bitmap, or...? So confused. Any clarification would be appreciated!
:sign0104: