mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add more comment
This commit is contained in:
committed by
Frans de Jonge
parent
bf40b5d5e6
commit
05f62cc4ba
@@ -1,3 +1,16 @@
|
||||
--[[
|
||||
CanvasContext is introduced to abstract out screen hardware code from document
|
||||
render module. This abstraction makes it possible to use core document module
|
||||
in headless mode.
|
||||
|
||||
You can think of canvas as a virtual screen. It provides render related
|
||||
settings like canvas dimension and DPI. User of document module need to
|
||||
initialize CanvasContext with settings from the actual hardware screen before
|
||||
calling renderPage/drawPage.
|
||||
|
||||
Note: CanvasContext is a singleton and it is not thread safe.
|
||||
]]--
|
||||
|
||||
local Mupdf = require("ffi/mupdf")
|
||||
|
||||
local CanvasContext = {
|
||||
|
||||
Reference in New Issue
Block a user