i try both codes..
i think the problem exists at that
the second method of getting rgb value is
based on raw data of png..but can't determine
how pixel is indexed, so the two result not...
Type: Posts; User: sogniator; Keyword(s):
i try both codes..
i think the problem exists at that
the second method of getting rgb value is
based on raw data of png..but can't determine
how pixel is indexed, so the two result not...
this is amazing..will simplify python game dev on s60 a lot..i will try
this is amazing..will simplify python game dev on s60 a lot
do u miss
kc.start()?
except ur codes are ok..
add listend key using tuple will be ok and u may try
kc.forwarding=1
cheers,
u always makes nice sample codes
appreciate..
i once used this snippets in camera motion detect script. though it works, it took time to finish, if open a large png file, to decompress it takes both memory and time
and it differs from native...
def png_loader(args):
if type(args) == list:
img.append([i for i in args])
return img
else:
return graphics.Image.open(args)
for img in img's path
image.append(graphics.Image.open(img))
import graphics
container = graphics.Image.new(desired_size)
container.blit(png,coord)
do u mean this
hi, marcel, looking forward to ur game
i think there's no native python function convert an rgb to grayscale
but will the rgb2grascale convert formula help u?
and getpixel method's return value is...
i assume u use pys60 1.4.* and keypress ext., i think u can start a new thread that simualte_key(EKeRightSoftkey,0xa5) after time x..
i think u can double-cross the line
gI.loop()
and try again
i think u can either use base64.encodestring(mystr) or base64.encode(input,output)
base64.encode function accept 2 args which has to be file objects, and the 2nd one needs to be opened with 'w' or...
i wonder if overriding _dbencoding will help
_dbencoding = 'utf-8'
try 'utf-8' codec instead of 'latin-1'
or u try, not to call camera.start_finder in constructor, define a new method in ur class that calls start_finder function
def start_vf(self):
...
when u use a callback in resize method, the callback is passed the resized image object, so the self.thumb dose not get assigned, so
print self.thumb.size dose not get output and self.c can't blit...
will u try this
in __init__()
appuifw.app.body = self.canvas = appuifw.Canvas()
and in viewfinder callback
self.canvas.blit(img)