创建呼吸占位符渲染器实例 Create breathing placeholder renderer instance
渲染器选项 | Renderer options
释放所有缓存资源 Dispose all cached resources
移除指定 ID 的占位符并释放资源 Remove placeholder by ID and release resources
占位符唯一标识 | Placeholder unique identifier
渲染一帧呼吸动画并返回位图 Render one frame of breathing animation and return bitmap
占位符宽度(CSS 像素)| Placeholder width (CSS pixels)
占位符高度(CSS 像素)| Placeholder height (CSS pixels)
唯一标识(用于缓存动画状态)| Unique ID (for caching animation state)
当前帧的 ImageBitmap | Current frame ImageBitmap
呼吸渐变占位符渲染器 Breathing gradient placeholder renderer
在图片加载过程中显示带有呼吸渐变动画的占位图。 整体明暗随正弦曲线周期性变化,模拟呼吸节奏。
Displays a placeholder with breathing gradient animation during image loading. The overall brightness oscillates following a sine curve, simulating a breathing rhythm.
Example