View on GitHub

SARAFF SOFTWARE

All products / Saraff.Twain.NET / Contents

String values

There are four types of TWAIN strings defined for developer use:

//Author
if((this._twain32.IsCapSupported(TwCap.Author)&TwQC.Set)!=0) {
    this._twain32.SetCap(TwCap.Author,"SARAFF".PadRight(128,'\0')/*TW_STR128*/); //The Author of the image.
}

// OR

if(this._twain32.Capabilities.Author.IsCapSupported(TwQC.Set)) {
    this._twain32.Capabilities.Author.SetCap("SARAFF"); //The Author of the image.
}