Search found 6 matches

by plymouth
Wed Jan 06, 2010 10:15 am
Forum: General
Topic: how fast is getpixel and setpixel?
Replies: 14
Views: 5417

Re: how fast is getpixel and setpixel?

I've been looking at the Ruby equivalent of Love2d called Gosu . Gosu itself doesn't allow manipulation of images (same as love2d) but it _does_ have a neat plugin library called TexPlay that does provide some pretty nice functionality like get_pixel and the drawing of lines, rectangles, polygons, c...
by plymouth
Tue Dec 29, 2009 7:09 pm
Forum: General
Topic: how fast is getpixel and setpixel?
Replies: 14
Views: 5417

Re: how fast is getpixel and setpixel?

@kalle thanks :) However it does seem like quite a weird limitation with Love that i cannot do some simple image manipulation like i want.. :)
by plymouth
Tue Dec 29, 2009 12:02 pm
Forum: General
Topic: how fast is getpixel and setpixel?
Replies: 14
Views: 5417

Re: how fast is getpixel and setpixel?

The purpose is that i need to manipulate a particular image (not just draw on the framebuffer) and that i need also to be able to do a getpixel on the image. Say for example i have an image that is landscape, and i want the ability to blow up the landscape then i want to be able to do a setpixel on ...
by plymouth
Tue Dec 29, 2009 11:47 am
Forum: General
Topic: how fast is getpixel and setpixel?
Replies: 14
Views: 5417

Re: how fast is getpixel and setpixel?

@bartbes, it seems that graphics.point draws a pixel on the framebuffer? what i want is to set and get pixels on an Image that i am currently displaying.

I assume this is not yet possible? (at least with very good performance)
by plymouth
Tue Dec 29, 2009 11:22 am
Forum: General
Topic: how fast is getpixel and setpixel?
Replies: 14
Views: 5417

Re: how fast is getpixel and setpixel?

@bartbes

hmm, sorry im new to Love. So i cannot directly modify an Image? My problem is i need to modify an image that i am displaying on screen. How do i do this? or must i convert between Image and ImageData (which i imagine would be slow...?)

thanks
by plymouth
Tue Dec 29, 2009 10:50 am
Forum: General
Topic: how fast is getpixel and setpixel?
Replies: 14
Views: 5417

how fast is getpixel and setpixel?

hi, if i use setpixel on an image is this change reflected in a later call to getpixel? also, how fast is setpixel? and how are you keeping the local image data in sync with the opengl textures? Are you keeping a local copy of the image data and then reading/writing to that? or are you doing everyth...