Home
Download
Purchase
Forum
Site Map
F.A.Q.
Support
About Us
Home » VideoCharge » VideoCharge Support » SetColor in c#
SetColor in c# [message #919] Sun, 26 March 2017 20:16 Go to next message
zoinky  is currently offline 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 Go to previous messageGo to next message
zoinky  is currently offline 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 #921 is a reply to message #920 ] Sun, 26 March 2017 21:22 Go to previous messageGo to next message
zoinky  is currently offline zoinky
Messages: 4
Registered: March 2008
Junior Member
to add to my own question,
it seems that the .config file is having the effect on the size
i tried creating different .config files specific to .flv yet the size still is around 48 mb
can you provide me witha .config that basically is for NOTHING more than adding text (which i do through codde), i want framerate, size, etc to all be what the processing video has.
Re: SetColor in c# [message #928 is a reply to message #921 ] Tue, 28 March 2017 03:53 Go to previous messageGo to next message
zoinky  is currently offline zoinky
Messages: 4
Registered: March 2008
Junior Member
can admin please answer this,
the delay in answer is definately not helping me convince my boss to buy your product.
Re: SetColor in c# [message #930 is a reply to message #919 ] Tue, 28 March 2017 18:25 Go to previous message
admin  is currently offline 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]

Previous Topic:Videocharge freezing
Next Topic:Sound lacking
Go to Forum:
  


Current Time: Mon Oct 21 18:59:17 UTC 2024

Total time taken to generate the page: 0.00573 seconds
.:: Contact :: Main site ::.