How to convert BLOB scaling size into same pixel or percentage to create image in C#.

Vyas Sanket 1 Reputation point

Hi Folks,

I am a developer and in one of my project I have used crystal report.

In crystal report I have used BLOB field and I have set Scaling size of this with 15 height and 15 width. Its working as expected with this, it is showing the image appropriately even image is big or small with proper height and width.

Now, I want to create dynamic html string and use the image with same size in C# using html control with img tag, so I just want to know how I can convert the scale size into pixel or percentage using C# to create image or how I can calculate the height and width ,so it will display image same as blob field in C#

Overall, How I can convert the scale size of BLOB field into pixel or percentage using C# code or is their any mechanism to calculate height and width percentage same as blob field.


Please help me on this.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,121 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.3K Reputation points MVP

    QnA currently supports the products listed in right-hand pane (more to be added) Better to reach out to subject matter experts in dedicated forums over here.

    C# questions could be asked here.

    (please don't forget to mark helpful replies as answer)

    0 comments No comments