本文介绍了HTML5 - Canvas - 大图片的优化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个 HTML5 画布,其中包含一个非常大的图片,可能高达10-15MB。我的第一个想法是将图像拆分成几个块,当在画布上水平移动时将被加载。

I need to build a HTML5 canvas which contains an very large image, maybe up to 10-15MB. My first idea was to split the image into several chunks which will be loaded when moving horizontally through the canvas.

有关这个想法的任何想法?这是一个好的?也许我缺少一些已经实现的优化功能?

Any thoughts about this idea? Is it a good one? Maybe I'm missing some optimization feature already implemented?

推荐答案

不幸的是,这里没有任何其他聪明的优化。

Unfortunately, there aren't any other clever optimizations to be had here.

这篇关于HTML5 - Canvas - 大图片的优化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 02:26