SetColor in c# [message #919] |
Sun, 26 March 2017 20:16 |
zoinky Messages: 4 Registered: March 2008 |
Junior Member |
|
|
I am trying to set color of a text watermark in c#, but the SetColor takes a uint, and am not exactly sure how to represent different colours with just a single uint value
say i want to make the text yellow, or orange, what would be the value of the uint?
|
|
|
Re: SetColor in c# [message #920 is a reply to message #919 ] |
Sun, 26 March 2017 20:49 |
zoinky Messages: 4 Registered: March 2008 |
Junior Member |
|
|
I also want to add the fact that, after adding a SIMPLE url text watermark to a 9MB .flv, it turned it into a 48MB flv
any reason for this?
how can i keep EVERYTHING the same, i just want to add simple text and keep the size the same
by the way, am using the example that was provided with the SDK (c#)
i also updated this line
//Set output format to WMV (Windows Media Video)
pFormat.SetOutputFormatID((int)WMSDKFormats.WMSDK_FORMAT_FLV );
so that its outputting flv instead of wma(which the example uses)
[Updated on: Wed, 26 March 2008 20:55]
|
|
|
|
|
Re: SetColor in c# [message #930 is a reply to message #919 ] |
Tue, 28 March 2017 18:25 |
admin Messages: 532 Registered: December 2005 |
Senior Member Administrator |
|
|
Hi.
Here is small sample that adds text watermark and sets red color for it.
{
//Get watermarks collection
WMSDK.CWMSDKWatermarks pWatermarks;
profile.GetWatermarks(out pWatermarks);
object objImage;
pWatermarks.AddWatermark(2, out objImage);
WMSDK.CWMSDKWatermarkText pWMImage = (WMSDK.CWMSDKWatermarkText)objImage;
pWMImage.SetText("TEXT EXAMPLE");
//Draw RED watermark - Format - 0x XX - blue, XX - green, XX - red
pWMImage.SetColor(0x0000FF);
}
But we highly recommend you to use function LoadConfig with created before config-file with
all needed watermarks added in the Watermark Master.
Regards,
Videocharge Team.
[Updated on: Fri, 08 January 2010 13:42]
|
|
|