www.omniscience.dk - and under Portfolio I want to put a watermark on my images.
So, I read that ImageGen could do this for me quick and easy.. Now I've been messing with this for several hours, and I can't figure out what I'm doing wrong.
using System.IO; using System.Drawing.Printing; using RasterEdge.Imaging; using RasterEdge.Imaging.Processing;
RasterEdgeImaging Image = new RasterEdgeImaging();
//Create an instance of Image and load an existing image using (Image image= Image.LoadImageFromFile(@"C:\1.bmp")); { Graphics graphics=new Graphics(image); RasterEdgeImaging.Font font = new RasterEdgeImaging.Font("Times New Roman", 16, FontStyle.Bold); RasterEdgeImaging.Brushes.SolidBrush brush=new RasterEdgeImaging.Brushes.SolidBrush(); brush.Color=Color.Black; brush.Opacity=100; image.CreateWatermark("watermark", font, brush, new PointF(image.Width/2, image.Height/2)); image.Save(@"C:\1-watermark.bmp"); }
first of all create Document type(e.g.. Name:-Album) and also create album master page....
second one create XSLT file and added some code...
and after added macro and import macro in album master page...
and after added some images in media folder.... and after create content... choose the folder...
and now display all images proper...
but i want to not display all images...i want to filterable like a portfolio...
Need help creating watermark on portfolio Images.
Hi all,
I need some help figuring this out..
I have this site:
Version: Umbraco 4.7 RC
www.omniscience.dk - and under Portfolio I want to put a watermark on my images.
So, I read that ImageGen could do this for me quick and easy.. Now I've been messing with this for several hours, and I can't figure out what I'm doing wrong.
heres my code from ImageViewer.ascx :
And my Webconfig-file:
Some one please give me a clue here..
Br,
Djan
I think you need to Professional version of ImageGen to use "Overlayimage" and it can only be setup in a class. Check out the documentation - http://www.percipientstudios.com/media/16505/imagegen%202.5%20reference%20manual.pdf
hm.. allright then.
Any other suggestions? :)
You could just write text on top of the image using &text= along with &font, &fontsize, &fontcolor
align=right and valign=bottom would put the text at the bottom right of the image
e.g. imagegen.ashx?image=xxx&text=xxx&fontsize=18&fontcolor=f5f5f5&align=right&valign=bottom
hello there, I want to create a filterable portfolio/Gallery...can you please help me......???
and i was some try like...(http://www.diplo.co.uk/blog/2011/4/8/creating-a-simple-image-gallery-in-umbraco.aspx)
first of all create Document type(e.g.. Name:-Album) and also create album master page.... second one create XSLT file and added some code... and after added macro and import macro in album master page... and after added some images in media folder.... and after create content... choose the folder... and now display all images proper...
but i want to not display all images...i want to filterable like a portfolio...
thanks in advance..
I hope your reponse....
is working on a reply...