A better way to set image pixels (With Example)

Home Forums Monkey 2 Development A better way to set image pixels (With Example)

This topic contains 4 replies, has 3 voices, and was last updated by  cocon 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12678

    cocon
    Participant

    I have a case where I want to modify the pixels of an image. So based on trying a few stuff I result to this example.

    This example works fine, but if in the future are better ways that allow moving pixels directly (without allocating new Pixmaps) it wll be much preferred.

    #12679

    PhatPeter
    Participant

    That is a slow way to access pixel, what stops you from just using texture via canvas and draw it permanently onto that like this?

    #12743

    cocon
    Participant

    So using the canvas is faster right? OK I will result to it then. But still I would try a few other things if I can get it done.

    #12751

    abakobo
    Participant

    read this post for pixel by pixel read/write optimisation:

    Faster way to read in pixels?

    #12795

    cocon
    Participant

    Good one!

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

You must be logged in to reply to this topic.