docs: rosetta naming in README, docs, guide, licenses
This commit is contained in:
1 parent
22ddcd78fa
commit
753ae98d4a
20 files changed
+123
-123
No files matched your search
+2
-2
@@ -277,7 +277,7 @@ An animated image also opens as a video (`F.video.open(gifBytes)`), and saves to
|
||||
|
||||
<!-- doc:display Roblox only -->
|
||||
```luau
|
||||
local F = require(game.ReplicatedStorage.Formats)
|
||||
local F = require(game.ReplicatedStorage.Rosetta)
|
||||
local img = assert(F.image.load(pngBuffer)) -- e.g. from HttpService:GetAsync(...)
|
||||
local editable = assert(F.host.toEditableImage(img)) -- needs rgba8: F.ops.image.convert first otherwise
|
||||
local label = Instance.new("ImageLabel")
|
||||
@@ -286,7 +286,7 @@ label.ImageContent = Content.fromObject(editable)
|
||||
|
||||
<!-- doc:display LÖVE only -->
|
||||
```lua
|
||||
local F = require("formats")
|
||||
local F = require("rosetta")
|
||||
local img = assert(F.load("photo.png")) -- love.filesystem path
|
||||
local image = love.graphics.newImage(F.host.toImageData(img))
|
||||
local back = F.host.fromImageData(love.image.newImageData("other.png")) -- ImageData -> rgba8 Image
|
||||
|
||||
Reference in new issue
Block a user