This code will show You on way to scale an image with .Net Beta 2.
Advanced Solana: Mastering Development and Optimization