Re: [Tutor] [tutor] creating image from a given data in wxpython

2007-10-01 Thread Alan Gauld

Ian Witham [EMAIL PROTECTED] wrote

 I basically wanna create a bitmap image in python. This will be
 basically in pixels. X and y coordinates will be specified in the 
 program
 and python should create an image by matching the colours.

 I found it to be a very slow way to do things (both in programming 
 and in
 execution speed) and I ended up using the Python Image Library (PIL)
 instead.

 If you don't really need the GUI capabilities of WX for this project 
 then
 PIL is probably a better tool for the job.

Avtually I'd recommend PIL even if you do need the wxPython GUI
capabilities. wxPython will happily display bitmapps created in PIL.

Alan G. 


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] [tutor] creating image from a given data in wxpython

2007-09-30 Thread Varsha Purohit
Hi All,
I basically wanna create a bitmap image in python. This will be
basically in pixels. X and y coordinates will be specified in the program
and python should create an image by matching the colours. I came across a
function called wx.ImageFromData which book claims that it creates a bitmap
image in pixels. But i am not getting proper implementation of this function
on net...

thanks,,
Varsha
On 9/30/07, Varsha Purohit [EMAIL PROTECTED] wrote:

 Hello All,

  I want to create a wxpython program where i am reading a list having
 integer values like [1,2,3,4]. and i need to display the output value as
 bitmap image which shd be coloured after reading the values. Like 1=red,
 2=yellow, 3=orange etc and it displays the output in colours at proper
 coordinates by matching values of the array. I need to make a script file
 for arcgis tool which converts the ascii data to a coloured bitmap image at
 given coordinates.

 thanks,
 --
 Varsha Purohit,
 Graduate Student,
 San Diego State University




-- 
Varsha Purohit,
Graduate Student,
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor