			PP9000/8800/PP6900/PP5200 Series
        Thermal Printer NV-Bitmap files download utility for WinXP/Win7/Win8.
	
						Posiflex Technology Inc., Taiwan, R.O.C.
						http://www.posiflex.com.tw
						tech@posiflex.com.tw
						Tel: +886-2-22991599 
						Fax: +886-2-22991819
						July. 01, 2015
--------------------------------------------------------------------------------------
** NV-Bitmap Library PP9000.DLL for Windows Usage

** There are three functions in PP9000.DLL as below.

long PrnBitmap( long bmno, long mode, LPSTR port, long baud, long handle);

        "bmno" is a bitmap file ID previously defined into the printer
                The first file registered has ID 1, second ID 2, ... and so on.
                The maximum file ID is 255.
        "mode" 0 is normal printing , 1 is double width, 2 is double height,
                and 3 is double width and double height printing.
        "port" can be NULL, COM1, COM2, COM3, COM4, LPT1, LPT2, and LPT3.
        "baud" is the baud rate for COM ports, the default is 19200
        "handle" is the device handle for the "port".
                It means that you can open the output port yourself or
                you can use "port" to ask the function to opon it for you.
                If you do not use "handle" please specify it as 0.
        RETURN value:
                0 means succeess
                1 means port open failed
                2 means port writing failed
                3 means invalid parameter


long RegBitmap( LPSTR file );
        This function can be called multiple times to register
        different files to be defined latter by DefBitmap().

        "file" is a zero terminated path name of a bitmap file.
                If 'file' is NULL or a NULL string, the file ID counter
                will be reset to 0.
        RETURN value:
                0 means file ID reset succeessful
                1-254 is the registered file ID
                257 means too many files to be registered (can not exceed 255)
                258 means file path too long (can not exceed 512 chars)


long DefBitmap( LPSTR file, LPSTR port, long baud, long handle);
        This function sends file definitions registered by RegBitmap()
        to the printer.

        "file" is a zero terminated path name of your last bitmap file.
                If you need to define more than one file,
                RegBitmap() should be called before DefBitmap().
        "port" can be NULL, COM1, COM2, COM3, COM4, LPT1, LPT2, and LPT3.
        "baud" is the baud rate for COM ports, the default is 19200
        "handle" is the device handle for the "port".
                It means that you can open the output port yourself or
                you can use "port" to ask the function to opon it for you.
                If you do not use "handle" please specify it as 0.
        RETURN value:
                0 means succeess
                1 means invalied file path
                2 means file open failed
                3 means insufficient memory
                4 means write error
                5 means invalid port setting
                6 means file processing error
                7 means no file registered
                8 means invalid baud rate



***** Example 1: define 1 bmp file.

Step 1 : RegBitmap(bmpfile1)
Step 2 : DefBitmap(...)
Step 3 : It's ok. Please test bitmap print, or call PrnBitmap() function to print.


***** Example 2: define 3 bmp files.

Step 1 : RegBitmap(bmpfile1)
Step 2 : RegBitmap(bmpfile2)
Step 3 : RegBitmap(bmpfile3)
Step 4 : DefBitmap(...)
Step 5 : It's ok. Please test bitmap print, or call PrnBitmap() function to print.


***** Notice!!
. The NV-RAM size of our printer is 256MBytes. 
. The maximan width of bitmap picture should be small than 512 dots.
. There is no limitation for the maximan heigh of the bitmap picture.
. But the file size of bitmap picture should be small than 256MB.
. We suggest your bitmap file shoud be the monochrone bitmap file
  if you want to get the best printing result of the logo.

