[squeak-dev] Re: truncated output from Morph exportAsPNG

Boyce,Edward BOYCE at uchc.edu
Thu Dec 30 19:59:36 UTC 2010


Thank you Andreas.  That worked.  

     Best Regards,

            Ed
________________________________________
From: squeak-dev-bounces at lists.squeakfoundation.org [squeak-dev-bounces at lists.squeakfoundation.org] On Behalf Of Andreas Raab [andreas.raab at gmx.de]
Sent: Thursday, December 30, 2010 12:08 PM
To: The general-purpose Squeak developers list
Subject: [squeak-dev] Re: truncated output from Morph exportAsPNG

Yeah, an old problem. I just posted a fix for this in 4.2 but you can
work around the problem simply by going into FormCanvas>>reset and
change the initial clipRect definition to be large enough. The change I
posted will take care of this problem in the future.

Cheers,
   - Andreas

On 12/30/2010 4:14 PM, Boyce,Edward wrote:
> Hello all.
>
> I have an application where I need to export very long (but not very high) images -- around 800x50000 -- or so from a Morph of the same size.  However, when I use any of the four Morph exportAs{PNG|BMP|JPEG|GIF} methods, the resulting files have their visual data truncated after about 10000 horizontal pixels.  However, the overall image is still the full length -- just the output image data is missing from the "end" of the image, and the metadata for the image indicates that it is the length it is supposed to me.  When the morph is viewed with inATwoWayScrollPane, all of the data is visible, so it is the export that is truncating data.  An example of a truncated PNG is here:
>
>         http://boycenet.net/ccam/m22_ko_w_contact_f26_1.png
>
> Does anyone know why this might be and what I might be able to do to output the full length of data?  I've looked through the code and can't find any hard coded limits of 10000 pixels in the output.
>
> In case anyone is wondering, this output is a spectrogram of the vocalizations of a mouse that lacks a certain gene and thus makes it seem autistic, so it might be a model for autism in general, and the researcher is trying to analyze the voice patterns (at ultrasonic frequencies) over a long period of time (1 minute per sample from recordings taken at 196kHz sampling rate).  So, yes, we are trying analyze mouse squeaks with Squeak!
>
> Thanks in advance for any insights.
>
>           Best Regards,
>
>                  Ed Boyce
>
>
> ---------------------------------------------------------
> Ed Boyce
> Application Developer II
> University of Connecticut Health Center
> Center for Cell Analysis and Modeling
> (860) 679-3706 (landline)
> (413) 244-6453 (cell)
> boyce at uchc.edu
> ---------------------------------------------------------
>





More information about the Squeak-dev mailing list