c# - Place text on a picture -


i wonder if there's easy , clean solution put text on picture non-destructively.

for example: have picture can call:

http://localhost:7001/content/img/defaultpicutre.png 

having default text on picture call way:

http://localhost:7001/content/img/defaultpicutre.png?text=default%20text 

i know possible resizing images http://imageresizing.net/. i'm not sure if provide functionality i'd have.

do or there alternatives?

imageresizer allows exactly watermark plugin.

example web.config segment

<resizer>   <watermarks>     <text name="custom" text="hello #{text}!" align="topright" />   </watermarks> </resizer> 

example url

http://localhost/content/img/picture.png?text=default%20text&watermark=custom 

the watermark plugin (which better named overlays plugin) gives tremendous layout flexibility, supports image , text layers, , supports pre-processing of image layers.

the full configuration reference can found here.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -