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

Vyas Sanket 1 Reputation point
2020-04-22T18:38:48.317+00:00

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.

7508-img-20200422-212453-01-01-01-01.jpg

Please help me on this.

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

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-04-22T18:41:34.307+00:00

    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.

    https://community.sap.com/topics/crystal-reports

    C# questions could be asked here.

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=csharpgeneral

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

    0 comments No comments