internal static extern IntPtr Font_Paint(IntPtr font, string s, Font.PlotType flags, int xPos, int yPos, [In] Font.PaintCoordBlock CoordBlock, [In] OS.Matrix matrix, int length);
/*! \brief Write a string to the screen. * \param[in] str String to write * \param[in] flags Plot type * \param[in] xPos Start x coordinate (Must be in millipoints) * \param[in] yPos Start y coordinate (Must be in millipoints) * \param[in] coordBlock Coordinate block * \param[in] length Length of string to write (if bit 7 of flags set) * \return Nothing * * \note * Automatically: * \li Sets flag bit 5 to indicate coordinate block in use * \li Sets flag bit 8 to indicate font handle in use * \li Clears flag bit 0 because coordinate block in use * \li Clears flag bit 4 - millipoints must be used if coordinate block is used * \li Clears flag bit 6 to indicate transformation matrix not in use */ public void Paint(string str, PlotType flags, int xPos, int yPos, Font.PaintCoordBlock coordBlock, int length) { flags |= PlotType.GivenBlock | PlotType.GivenFont; flags &= ~(PlotType.GivenMatrix | PlotType.OSUnits | PlotType.Justify); Font.Paint(Handle, str, flags, xPos, yPos, coordBlock, null, length); }
/*! \brief Write a string to the screen. * \param [in] fontHandle Handle of font to use (0 for current handle) if * \b PlotType.GivenFont (bit 8) of flags set. * \param [in] str String to write. * \param [in] flags Plot type. * \param [in] xPos Start x coordinate. * \param [in] yPos Start y coordinate. * \param [in] coordBlock Coordinate block if \b Font.PlotType.GivenBlock (bit 5) of * flags set, otherwise \b null. * \param [in] matrix Transformation matrix if \b PlotType.GivenMatrix (bit 6) of * flags set, otherwise \b null. * \param [in] length Length of string to write if \b PlotType.GivenLength (bit 7) of flags set. * \return Nothing. */ public static void Paint(IntPtr fontHandle, string str, PlotType flags, int xPos, int yPos, Font.PaintCoordBlock coordBlock, OS.Matrix matrix, int length) { OS.ThrowOnError(NativeMethods.Font_Paint(fontHandle, str, flags, xPos, yPos, coordBlock, matrix, length)); }