Why not splitting it into 2 appvars of 160x240 to get a real full-resolution image?
![Smile](images/smiles/icon_smile.gif)
[i]OUTPUT
0->APOS
Begin
While Detect(^^oAPOS,"HDPICV2L"->APROG
CloseAll
Open(APROG,"r->ASLOT
0->BPOS
While Detect(^^oBPOS,"HDPICV2R"->BPROG
Open(BPROG,"r->BSLOT
Seek(8,0,ASLOT
Seek(8,0,BSLOT
For(CHAR,0,7
If GetChar(ASLOT)!=GetChar(BSLOT
Goto WRONGONE
End
End
Sprite_NoClip(GetDataPtr(ASLOT),0,0
Sprite_NoClip(GetDataPtr(BSLOT),160,0
Pause
1->BPOS
Lbl WRONGONE
End
End
det(1
For(CHAR,0,7
If GetChar(ASLOT)!=GetChar(BSLOT
Goto WRONGONE
End
End
private void SaveCreate()
{
//gets directory of this program
AppDir = AppDomain.CurrentDomain.BaseDirectory;
//debugging, doesn't effect the program
Console.WriteLine("Dir: "+AppDir);
//saves the pictures as pngs
LeftPictureBox.Image.Save(AppDir + @"Left.png", ImageFormat.Png);
RightPictureBox.Image.Save(AppDir + @"Right.png", ImageFormat.Png);
//makes sure file name is correct length
FilenameEight = Filename;
//I have this as 7 for the app var name allowing a L or R to be placed at the end
if (Filename.Length > 7)
Filename = Filename.Substring(0, 7);
//I have this as 8 for the header
if (FilenameEight.Length > 8)
{
FilenameEight = FilenameEight.Substring(0, 8);
}
else
{
//This loops until the header is 8 chars long
while (Filename.Length < 8)
{
Filename = Filename + "_";
}
}
//left picture ini file
string[] iniLines = { "/Leave this alone"
, "#GroupICE : all_gfx"
, "/Leave this alone"
,"#Palette : xlibc"
,"/image name"
,"#PNGImages :"
,"Left"
,"/name of your output app var"
,"#AppvarICE : "+Filename+"L"
,"#OutputHeader : HDPICV2L"+FilenameEight
,"/same image name as above"
,"#PNGImages :"
," Left"};
//saves the ini text and runs convpng
System.IO.File.WriteAllLines(AppDir+@"convpng.ini", iniLines);
Process.Start(AppDir + @"windows_convpng.exe");
//right picture ini file
string[] iniLinesB = { "/Leave this alone"
, "#GroupICE : all_gfx"
, "/Leave this alone"
,"#Palette : xlibc"
,"/image name"
,"#PNGImages :"
,"Right"
,"/name of your output app var"
,"#AppvarICE : "+Filename+"R"
,"#OutputHeader : HDPICV2R"+FilenameEight
,"/same image name as above"
,"#PNGImages :"
," Right"};
//saves the ini text and runs convpng
System.IO.File.WriteAllLines(AppDir + @"convpng.ini", iniLinesB);
Process.Start(AppDir + @"windows_convpng.exe");
}
Advertisement