CanvasDraw - A powerful pixel-based graphics library (Draw pixels, lines, triangles, read/modify image data, and much more!)

Module and Plugin Update - v4.9.0.b

Fixes and Memory Improvements

  • Fixed module and plugin to support the new EditableImage workflow changes: [Studio Beta] Major updates to in-experience Mesh & Image APIs

  • Performance improvements and memory optimisations for CanvasDraw.GetImageData() and CanvasDraw.GetImageDataFromTextureId()

  • The CanvasDraw.GetImageDataFromTextureId() method has been updated to support any asset based errors as this method can no longer guarantee a returned ImageData due to new EditableImage API changes and limiations. This method will also no longer work on assets that you do not own.


New SaveObject Format - Resolution Increased

CanvasDraw SaveObjects have a new chunk-based format which has allowed me to increase the resolution limit from 256x256 to 1024x1024 pixels!

The CanvasDraw Tools plugin has also been updated to support this new limit and format


PLEASE NOTE:

1024x1024 is a very large image to compress and decompress. In most use cases, you donā€™t even need anything higher than 512x512.

At a resolution this high;

  • Importing SaveObjects may freeze your client for a few seconds.

  • Storing a lot of these large SaveObjects may impact your place file size.

  • Calling CanvasDraw.GetImageData(SaveObject) will normally freeze your client for a second second. A new parameter has been added to this method (SlowLoad) which avoids this problem.
    Setting this parameter to true will yield your code and slowly decompress large SaveObjects to avoid freezing the client.

  • For an alternative, you can also use roblox images and call CanvasDraw.GetImageDataFromTextureId(TextureId) instead, which avoids decompression and doesnā€™t take up storage space.


Hereā€™s the full change log:

Module Changes:

  • Increased SaveObject resolution read limit from 256x256 to 1024x1024

  • Added Canvas:GetBuffer() and Canvas:SetBuffer()

  • Added SlowLoad parameter to CanvasDraw.GetImageData()

  • Fixed module and plugin to support the new EditableImage workflow changes

  • Performance improvements and memory optimisations for CanvasDraw.GetImageData() and CanvasDraw.GetImageDataFromTextureId()

Plugin Changes:

  • Increased the SaveObject Importer resolution limit from 256x256 to 1024x1024

  • Increased the Image Editor resolution limit from 256x256 to 1024x1024


CanvasDraw4.9.0.b.rbxm (65.7 KB)

2 Likes

mine keeps returning Unable to create an Instance of type "EditableImage"

Are you using the latest version? All previous 4.0 versions will no longer work due to a change to EditableImage

I use canvasdraw version v4.9.0.b

Hmm oddā€¦ Iā€™ll take a look today

Can you please provide a screenshot of the error? thanks!

sorry the error just came from your plugin