question

VyasSanket-0618 avatar image
0 Votes"
VyasSanket-0618 asked ·

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

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-supported
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DSPatrick avatar image
0 Votes"
DSPatrick answered ·

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)


· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.