LBuffer::Fill

#include "ltwrappr.h"

L_INT LBuffer::Fill(cValue=0)

Fills the class objects buffer with the specified value.

Parameters

L_UCHAR cValue

Character to use to fill the buffer.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Example

L_INT LBuffer__FillExample(LBitmapBase& LeadBitmap) 
{ 
   L_INT nRet; 
   LBuffer LeadBuffer ; 
   LBuffer LeadCopyBuffer ; 
 
   nRet =(L_INT)LeadBitmap.GetRow(&LeadBuffer,5) ; 
   if(nRet < 1) 
      return nRet; 
 
   nRet =LeadCopyBuffer.Copy(TEXT("ABCD String")) ; 
   if(nRet !=SUCCESS) 
      return nRet; 
 
   nRet =LeadBuffer.Fill() ; 
   if(nRet !=SUCCESS) 
      return nRet; 
   //... 
 
   nRet =LeadBuffer.Free() ; 
   if(nRet !=SUCCESS) 
      return nRet; 
 
   //... 
 
   nRet =LeadCopyBuffer.Free() ; 
   if(nRet !=SUCCESS) 
      return nRet; 
 
   return SUCCESS; 
} 
Help Version 22.0.2021.9.12
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help