Search code examples
c#image-processinglinear-gradients

C# Create gradient depending on color image


I'm searching a C# way to create a color gradient depending on a image source. I found nothing on Internet but the goal is to reproduce what Instagram do with stories. For exemple from this : https://i.sstatic.net/m54ze.jpg To this : https://i.sstatic.net/wRKCp.jpg

Thanks for your help


Solution

    1. Resize picture wxh to column 1xh.
    2. Resize column 1xh to background size.
    3. (Gaussian blur)