End If ogvbox.Width = ImageWidth ogvbox.height = ImageHeight/'ogvbox.height = ogvbox.Originalheight*ImageWidth//ogvbox.OriginalWidth ogvbox.Sharpen 1, 120 ogvbox.Save Server.MapPath(tempFilename)/'//Generate a preview picture of the picture after adding the watermark. ogvbox.Save Server.MapPath(imagename)/'//According to the above parameters, generate a picture file with added watermark. I mean here that the watermark can be added anywhere from the upper left corner to the lower right corner, that is, the entire picture. 0, 0, ogvbox.Width, ogvbox.Height/'//Available range of watermark. 0.5 is transparency, I am translucent here, 1 is opaque, you can also try 0.7 or 0.8. = False/'//Whether the border is filled with color, you can try the effect when the value is True^o^ ogvbox.DrawImage ogvbox.width-186, ogvbox.height-52, Logobox, 0.5/'//The starting coordinates of the watermark picture, I am here ogvbox.width-186, ogvbox.height-52, which means that the picture is in the lower right corner, because my picture has a width of 186 and a height of 52, so you can write it like this Make adjustments to your own pictures. = 1/'//The border width of the picture after increasing the watermark. = &H000000/'//The border color of the picture after adding watermark. ' 10, 10, ImageMode/'//The starting coordinates (pixels) of the watermark text.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |