Forums > Jitter

text : screen capture is blurred

March 25, 2008 | 6:18 pm

Hello,

I’ve done a screen capture of a TextEdit file (a poem) and would like to display it in a jit.window.
The .png is neat in "Apercu" but when I load this file in a jit.matrix with same size of the png (318 x 636) it becomes blurry, and even blurry if I increase the matrix dims.

What is the problem ? how to do that ?
I don’t want to use [jit.gl.text2d] or any else.

You can load the png file I use (48k) here :

http://derrickgiscloux.free.fr/png-file/

many thanks.

max v2;
#N vpatcher 67 158 667 558;
#P button 114 91 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 147 167 130 196617 jit.window asd @floating 1;
#P message 171 96 94 196617 importmovie , bang;
#P newex 147 124 129 196617 jit.matrix 4 char 318 638;
#P message 159 78 120 196617 importmovie si.png , bang;
#P fasten 0 0 1 0 164 119 152 119;
#P fasten 2 0 1 0 176 122 152 122;
#P connect 4 0 1 0;
#P connect 1 0 3 0;
#P pop;


March 25, 2008 | 6:54 pm

On Mar 25, 2008, at 11:18 AM, Derrick Giscloux wrote:
> I’ve done a screen capture of a TextEdit file (a poem) and would
> like to display it in a jit.window.
> The .png is neat in "Apercu" but when I load this file in a
> jit.matrix with same size of the png (318 x 636) it becomes blurry,
> and even blurry if I increase the matrix dims.

If I make the window size the same dimensions it looks almost exactly
like it does if I open the file in preview. I assume this is your
issue (mismatched window size).

-Joshua


March 25, 2008 | 6:54 pm

set the size attribute of your *window* to size of the matrix, and its good.
if you want to keep the size of the window to the defualt 320 240 then you
can submatrix your data.

On Tue, Mar 25, 2008 at 8:18 PM, Derrick Giscloux
wrote:

>
> Hello,
>
> I’ve done a screen capture of a TextEdit file (a poem) and would like to
> display it in a jit.window.
> The .png is neat in "Apercu" but when I load this file in a jit.matrixwith same size of the png (318 x 636) it becomes blurry, and even blurry if
> I increase the matrix dims.
>
> What is the problem ? how to do that ?
> I don’t want to use [jit.gl.text2d] or any else.
>
> You can load the png file I use (48k) here :
> http://derrickgiscloux.free.fr/png-file/
>
> many thanks.
>
> max v2;
> #N vpatcher 67 158 667 558;
> #P button 114 91 15 0;
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P newex 147 167 130 196617 jit.window asd @floating 1;
> #P message 171 96 94 196617 importmovie , bang;
> #P newex 147 124 129 196617 jit.matrix 4 char 318 638;
> #P message 159 78 120 196617 importmovie si.png , bang;
> #P fasten 0 0 1 0 164 119 152 119;
> #P fasten 2 0 1 0 176 122 152 122;
> #P connect 4 0 1 0;
> #P connect 1 0 3 0;
> #P pop;
>
>


March 25, 2008 | 6:56 pm

set your window size to the same dimensions as the source image

On Tue, Mar 25, 2008 at 7:18 PM, Derrick Giscloux
wrote:
>
> Hello,
>
> I’ve done a screen capture of a TextEdit file (a poem) and would like to display it in a jit.window.
> The .png is neat in "Apercu" but when I load this file in a jit.matrix with same size of the png (318 x 636) it becomes blurry, and even blurry if I increase the matrix dims.
>
> What is the problem ? how to do that ?
> I don’t want to use [jit.gl.text2d] or any else.
>
> You can load the png file I use (48k) here :
> http://derrickgiscloux.free.fr/png-file/
>
> many thanks.
>
> max v2;
> #N vpatcher 67 158 667 558;
> #P button 114 91 15 0;
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P newex 147 167 130 196617 jit.window asd @floating 1;
> #P message 171 96 94 196617 importmovie , bang;
> #P newex 147 124 129 196617 jit.matrix 4 char 318 638;
> #P message 159 78 120 196617 importmovie si.png , bang;
> #P fasten 0 0 1 0 164 119 152 119;
> #P fasten 2 0 1 0 176 122 152 122;
> #P connect 4 0 1 0;
> #P connect 1 0 3 0;
> #P pop;
>
>


March 25, 2008 | 6:57 pm

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 317 98 27 9109513 t b l;
#P number 391 50 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 354 50 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 317 77 85 9109513 pak offset 0 0;
#P newex 147 158 176 9109513 jit.submatrix @dim 320 240 @offset 0 0;
#P button 114 91 15 0;
#P newex 147 198 116 9109513 jit.window asd @floating 1;
#P message 171 96 94 9109513 importmovie , bang;
#P newex 147 124 152 9109513 jit.matrix 4 char 318 638 @interp 0;
#P message 159 78 120 9109513 importmovie si.png , bang;
#P connect 6 0 9 0;
#P fasten 5 0 3 0 152 187 152 187;
#P connect 1 0 5 0;
#P fasten 9 0 1 0 322 120 152 120;
#P fasten 9 1 5 0 339 148 152 148;
#P connect 7 0 6 1;
#P connect 8 0 6 2;
#P connect 4 0 1 0;
#P fasten 2 0 1 0 176 122 152 122;
#P fasten 0 0 1 0 164 119 152 119;
#P window clipboard copycount 10;

On Tue, Mar 25, 2008 at 8:54 PM, yair reshef wrote:

> set the size attribute of your *window* to size of the matrix, and its
> good.
> if you want to keep the size of the window to the defualt 320 240 then you
> can submatrix your data.
>
>
> On Tue, Mar 25, 2008 at 8:18 PM, Derrick Giscloux
> wrote:
>
> >
> > Hello,
> >
> > I’ve done a screen capture of a TextEdit file (a poem) and would like to
> > display it in a jit.window.
> > The .png is neat in "Apercu" but when I load this file in a jit.matrixwith same size of the png (318 x 636) it becomes blurry, and even blurry if
> > I increase the matrix dims.
> >
> > What is the problem ? how to do that ?
> > I don’t want to use [jit.gl.text2d] or any else.
> >
> > You can load the png file I use (48k) here :
> > http://derrickgiscloux.free.fr/png-file/
> >
> > many thanks.
> >
> > max v2;
> > #N vpatcher 67 158 667 558;
> > #P button 114 91 15 0;
> > #P window setfont "Sans Serif" 9.;
> > #P window linecount 1;
> > #P newex 147 167 130 196617 jit.window asd @floating 1;
> > #P message 171 96 94 196617 importmovie , bang;
> > #P newex 147 124 129 196617 jit.matrix 4 char 318 638;
> > #P message 159 78 120 196617 importmovie si.png , bang;
> > #P fasten 0 0 1 0 164 119 152 119;
> > #P fasten 2 0 1 0 176 122 152 122;
> > #P connect 4 0 1 0;
> > #P connect 1 0 3 0;
> > #P pop;
> >
> >
>
>


Viewing 5 posts - 1 through 5 (of 5 total)