ZIM Explore! 50. Images, Bitmaps, Assets - #HTML #Canvas #JavaScript, #CreateJS, #ZIMjs

preview_player
Показать описание


00:00 assets with preloading
13:24 asset with no preloading
17:50 current recommendation with preloading
18:39 assets without preloading in BitmapColor
19:38 lazy loading with AC (AssetContainer) and Image types
25:39 Triangle with BitmapColor - in complete event
27:50 NoCORSimage (not in this video)

As of ZIM Cat we can choose not to preload assets and just use asset(). But... this will not work in some cases such as then using the asset as a BitmapColor(). This is because it still needs to load the asset in the background. So we would have to wait for the complete event before using the asset and even then... it is an Image object which is a Container with a Bitmap inside. This explore takes us through the details.
Рекомендации по теме
Комментарии
Автор

Great tutorial. It’s always good to see what Zim is doing under the hood.

iestynjones
Автор

Note - in ZIM version ZIM 00 we have now added Pic(), Aud() and SVG() to take the place of the asset() command - also there is Vid(). We can still use asset() if desired - the others just wrap the asset() call. And for BitmapColor() we can use Pic() directly.

ZIMLEARN
welcome to shbcf.ru