Positions
usePoster
usePoster
generates a poster image based on position information. You can set the size, background color, font color, font size, and content position of the poster.
const { ref, toDataURL, toBlob, download, copy } = usePoster({
backgroundColor: "#0b8c70",
backgroundImg: "/images/poster_bg.png",
color: "rgba(255, 255, 255, 0.98)",
profitColor: "rgb(0,181,159)"
// ...
});