Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
aDino  
#1 Posted : Thursday, January 29, 2009 1:01:08 AM(UTC)
aDino

Rank: Newbie

Groups: Member
Joined: 1/19/2009(UTC)
Posts: 5

Hi

How can I create a Stamp effect like in photo editor "Border" > "artistic" > "Stamp" ?

It's possible doing with Graphics Mill and Ajax ? and how ? could you provide some example in c# ?

Another question.. how can I learn all the Graphics Mill's potentiality ?

Thanks

Edited by user Thursday, January 29, 2009 11:46:24 PM(UTC)  | Reason: Not specified

Dmitry  
#2 Posted : Friday, January 30, 2009 3:43:11 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

You can easily implement this functionality using Graphics Mill. The basic idea is to prepare template image that contains the border. Central part of this template should be transparent. So you just need to draw this template image over source one taking into account transparency and you will get bordered image as a result. Here is small sample:

Code:

using (Aurigma.GraphicsMill.Bitmap bitmap = new Aurigma.GraphicsMill.Bitmap(@"D:\Temp\IMG_0006.jpg"))
using (Aurigma.GraphicsMill.Bitmap border = new Aurigma.GraphicsMill.Bitmap(@"D:\Temp\Stamp.png"))
{
    border.Transforms.Resize(bitmap.Width, bitmap.Height);
    Aurigma.GraphicsMill.Transforms.Combiner combiner = 
        new Aurigma.GraphicsMill.Transforms.Combiner(border, Aurigma.GraphicsMill.Transforms.CombineMode.Alpha, 1,
        Aurigma.GraphicsMill.Transforms.InterpolationMode.Bilinear);
    combiner.ApplyTransform(bitmap);
    
    bitmap.Save(@"D:\Temp\dest.jpg");
}

Read Overlaying Images for detailed information.

aDino wrote:
Another question.. how can I learn all the Graphics Mill's potentiality ?

If you want to get to know what functionality is represented in Graphics Mill, you can start with online ducumentation: Overview of Features.

Edited by user Friday, January 30, 2009 3:44:37 PM(UTC)  | Reason: Not specified

Dmitry attached the following image(s):
Stamp.png
Sincerely yours,

Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.