BptImage
The BptImage component displays images as standard img elements, CSS background elements, or applies backgrounds to the page body or any element by class name. Image effects can be applied using Canvas pixel manipulation.
Image Effects
Apply image manipulation effects using Canvas API pixel processing. Toggle effects and adjust parameters to see changes in real time.
Effect Parameters
Demo - No effects applied (original image)
Current Configuration
Image Mode
Standard img element with lazy loading and object-fit support.
Default (Loading=Lazy)
ObjectFit=Cover
ObjectFit=Contain
ElementBackground Mode
CSS background-image on a div with customizable size, position, repeat, and attachment properties.
Background Cover
Content overlayBackgroundSize=Cover with child content
BackgroundSize=Contain with fallback color
BackgroundRepeat=Repeat
BackgroundRepeat=RepeatX
BackgroundPosition=Bottom
BodyBackground Mode
Apply background to the HTML body element using JavaScript interop.
BptImageMode.BodyBackground
Toggle to apply background to the page body element.
ElementBackground with AssignToClassName
Apply background to elements by class name using JavaScript interop (no div rendered).
AssignToClassName
Toggle to apply background to elements with class "demo-target".