File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Setting pixels to a [render target](/reference/dxCreateRenderTarget) is **especi
3636
3737## Examples
3838
39- Pixels can also be loaded from any png/jpeg file just like this:
39+ Pixels can also be loaded from any * png/jpeg* file just like this:
4040
4141``` lua
4242local fileHandler = fileOpen (" hello.jpg" )
@@ -54,10 +54,13 @@ fileClose(fileHandler)
5454Pixels can be used to create textures just like this:
5555
5656``` lua
57- local newTexture = dxCreateTexture (pixelsData )` />
57+ local newTexture = dxCreateTexture (pixelsData )
58+ ```
59+
60+ Pixels can be used to save textures just like this:
5861
59- <p> Pixels can be used to save textures just like this : </ p >
60- < Code lang = " lua " code = ` local texturePixels = dxGetTexturePixels(myRenderTarget)
62+ ``` lua
63+ local texturePixels = dxGetTexturePixels (myRenderTarget )
6164local texturePixelsConverted = dxConvertPixels (texturePixels , " jpeg" )
6265local fileHandler = fileCreate (" piccy.jpg" )
6366
You can’t perform that action at this time.
0 commit comments