Re: [casetta] Implemented the Image-to-Casio-Basic Function

[ Thread Index | Date Index | More Archives ]


Thank you for this contribution, the code is very interesting, but I didn't manage to make it work as expected : the program didn't draw the expected picture but only some line more or less related to the original picture. There is some problem, by example when a line go at the last pixel of the line : the f-line is not made.
I've tried quickly to correct that, but I didn't succeed.

Other details about the code:
1. There is no function in Casetta to get a table of pixel from a picture, because there is no need to do that for the moment (except your function) because casio formats use a very stupid organization.
2. About the location of the functions, I haven't decided if the function will be for casetta_gtk only (in this case, it will be add in the code of casetta_gtk, as the function to extract passwords from a backup), on available in the python module (in this case, it will be inside the module). But it's better for the moment to work inside the module because the work on casetta_gtk has not begun, and the casetta_gtk organization may change.

About the Bug #2, I know there is some issue inside « casetta must ask to save or not » function. I'll change its behavior. (But there is no link to your video. If you added a html link, just copy the link in plain text, and remember : html is not standard inside mails.)

Thanks for your interest about Casetta,

2007/3/8, Fabien ANDRE <fabien.andre.g@xxxxxxxxxx>:
Hello casetta developers,

I requested a new function ofr casetta in the wishlist and i had the pleasure to see that it was added to the roadmap. I began to implement this function (See in the attachment). I put this function in the but I don't know if it is the good location.
This function takes a normalized picture and returns a Casio Basic Program which draws the picture.
This function only use the F-line instruction (and only Horizontal F-lines) and Plot-On instructions. Therefore, it is not very optimised to produce Basic Programs which consume few memory.

I have also reported a bug #2 about casetta : here is a video to explain what I get. The script I used to test this function is :
#-*- coding: utf-8 -*-

import as pic
import Image
from os import chdir
print len(imn)
print im_basic

programme_final="%Header Record\nFormat:TXT\nData Type:PG\nFile Name:TestF\nPassword:\n%Data Record\n"+"\Cls\n"+im_basic
file=open('TestF.newcat', 'w')
Fabien ANDRE aka Xion345
Microsoft is not the answer. Microsoft is the question. NO (or Linux) is the answer. ( Unknown, Not dated )

Thesa ~ Florian Birée
e-mail : florian.biree@xxxxxxxxx
Messagerie Instantanée Jabber/XMPP/Google Talk : florian.biree@xxxxxxxxx
Site web et blog :

Mail converted by MHonArc 2.6.19+