Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
How do I split a PNG?
Is there min/max size?
Smile
TheLastMillennial wrote:
You only use either an L or an R, never both at the same time.

What if I wanted the name to be:REDPIC4? Would it work?
TheLastMillennial wrote:
(Boy, I can't wait to include a easy converter program in my next release.)

when will it be out? Very Happy
Now I think we have an issue of you not reading the ReadMe. Rolling Eyes
Just use any local image editing software, or online tool to split the image.

Yes REDPIC4 would work, the program only looks at the eighth character of the header to see which image half it's dealing with. The ninth through sixteenth character are used strictly for pairing images together, and providing the name.

When will it be released? I'll just follow Kerm's policy.
KermMartian wrote:
I should start playing by George R. R. Martin rules. Every time someone asks when [HDpic] will be released, I delay it by another week.
Wink
So how many weeks is it now? Very Happy
And what about the easy converter?

Thanks I got it working.
Thanks I got it working. Very Happy
I have 2 suggestions

1:Some color setings like: background color and text color.
2:I think the pictures names should have a max length of 16 chars instead of 8.
Thanks for your suggestions!
1. I'm adding that eventually but it's not a priority right now.
2. If it were simple to allow 16 characters I would, but as it currently stands: I find 8 characters plenty for a simple name, and there's nowhere near enough room for me to display 6 images per page and allow 16 character names. Therefore I don't think it's worth the effort to change a bunch of code and rearrange my image layout to allow for 16 char names.

My current priorities are:
1. Fix image detection (yet again)
2. Get the thumbnails to display with the correct pallet (that's gunna be a huge learning curve)
Can you add a zoom in/out function?
Got a few updates!
Thanks to PT_, image detection is working again!
Mateo is teaching me how the new thumbnail routine is going to work during our free time. Since he was busy today I started researching how to get my program to act as a subprogram for other programs.
I first tried to get the contents of Ans (which should be a string) in ICE, but it turns out ICE sets Ans to 0 when a string is stored in it. I can use a Str var instead but, I would've liked to not restrict the calling program's use of a Str var. I'll probably set it up so the calling program stores the image name (as it appears in my program) into a Str var then calls the HDPIC program.

A zoom in feature? That'll have to wait, I don't know how well the ICE routines can scale up an image. I'll also have to implement panning over an image. I suppose it's doable but, it'll be a later feature.
I worked more on getting my program to act as a subprogram and I got it to work! kinda. Unfortunately, I can't use Ans so I'm using the Str0 variable. I can't seem to pass my Str0 var from a BASIC program to my ICE program correcty. So

prgmTEST
Code:
"HDPICV3RGBtest."->Str0
Asm(prgmHDPICV

Should immediately pull up my RGB test gradient picture, however it's not passing though my Str0 variable properly. If I check what's stored in it at the beginning of my program, it's just some random character(s).
However, if I put "HDPICV3RGBtest."->Str0 directly into my HDPIC source code, it pulls up the picture flawlessly.
I know this is possible, I tried looking at the ICESpriteCreator's BASIC source code but I couldn't see what I was doing differently. Could someone please shed light on what's going on?

EDIT:
runer112 clarified that the Str vars in ICE are not the same Str vars that you'd use in a BASIC program. I need to use a command that's something like OpenVar([720000],"r",4) to open Ans, then I can read from it.
Could it be the fact that the ICE version now doesn't have GetBASICVar()? If the new version doesn't have that and instead a substitute, I haven't updated ICE in a while...

iiirc, Get/SetBASICVar() are planned for a future version?
Do you know about this?
http://tibasicdev.wikidot.com/one-byte-tokens

The OS strings are formatted this way, as well as programs.
You need to use GetTokenString to get the ASCII values for the lowercase letters, due to them actually being two-byte tokens Rolling Eyes

<rant>
TI just has to make this sooooo difficult! Why not use standard ASCII??? Because they WANT this to be hard
</rant>
Progress update! I've got the single image thing at least partially working. If your image name is all uppercase my program seems to be handling it just fine, but give it a lowercase letter and it throws a fit. I'll have to integrate that command beck provided above!

I'm also having an issue where when Ans is something other than a string (or an invalid string), my program should just skip right over the single image detection code an just start up the main program. It seems to be doing that fine when Ans is a string, but if Ans is something other than a string, it's messing something up which causes the main program to not detect any images.

Another issue that I'll have to work out later is how my Appvars are stored. Currently, they're causing all sorts of memory issues which I posted about here. I'm not going to worry about it for my first release since that's probably going to require a code overhaul and I don't want to do that right now. I may also try and find a way to compress the images but Mateo said reworking how Appvars are stored was more important so I'm taking his word for it!

I've also updated the todo list. When all of the 'Higher Priority' things are done, I'll finally publish a V1 release!
TheLastMillennial wrote:
Progress update! I've got the single image thing at least partially working. If your image name is all uppercase my program seems to be handling it just fine, but give it a lowercase letter and it throws a fit. I'll have to integrate that command beck provided above!

I'm also having an issue where when Ans is something other than a string (or an invalid string), my program should just skip right over the single image detection code an just start up the main program. It seems to be doing that fine when Ans is a string, but if Ans is something other than a string, it's messing something up which causes the main program to not detect any images.

Another issue that I'll have to work out later is how my Appvars are stored. Currently, they're causing all sorts of memory issues which I posted about here. I'm not going to worry about it for my first release since that's probably going to require a code overhaul and I don't want to do that right now. I may also try and find a way to compress the images but Mateo said reworking how Appvars are stored was more important so I'm taking his word for it!

I've also updated the todo list. When all of the 'Higher Priority' things are done, I'll finally publish a V1 release!


I have a suggestion, why not open an image from BOSshell? (since you're already using Ans to run the program)
this page for details on the structure of BOSshell's 'packet' file (basically just stores data for the subprogram to read)
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 6 of 6
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement