This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, August 31, 2005 11:13:21 PM(UTC)
Groups: Registered
Posts: 3
Hi,
I'm using LEAD Image Rastering Pro v14. My IDE is VC++ 6 and I'm using the C++-Class-Library.
In an new bitmap I want to put some text and an existing bitmap.
Creating the new bitmap and combining it with the existing one is not
the problem. It works fine. I've just the problem that I can't find a
method to ptu text in the bitmap.
Please give my a hint how it works.
THX
Bjoern
#2
Posted
:
Monday, September 5, 2005 9:20:29 PM(UTC)
Groups: Registered
Posts: 3
Hi all,
I solved the problem using GDI-Functions.
===== schnipp =====
_i_Result = mcl_Bitmap.Create( _i_Width, _i_Height, 1, ORDER_BGR );
_i_Result = mcl_Bitmap.Fill( 1 );
_i_Result = mcl_Bitmap.Invert();
_h_Dc = mcl_Bitmap.CreateLeadDC();
_h_Font = CreateFont( // height of font
_i_Height,
// average character width
_i_CWidth,
// angle of escapement
0,
// base-line orientation angle
0,
// font weight
FW_NORMAL,
// italic attribute option
false,
// underline attribute option
false,
// strikeout attribute option
false,
// character set identifier
DEFAULT_CHARSET,
// output precision
OUT_CHARACTER_PRECIS,
// clipping precision
CLIP_DEFAULT_PRECIS ,
// output quality
DEFAULT_QUALITY,
// pitch and family
FF_MODERN,
// typeface name
NULL
);
_h_OldFont = (HFONT)SelectObject( _h_Dc, _h_Font );
_i_Result = TextOut( _h_Dc, 100, 0, mac_Text, _i_TextLength );
===== schnapp =====
THX
#3
Posted
:
Tuesday, September 6, 2005 5:46:09 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Use the LPaintEffect::Draw3dText function. The help file contains a small code fragment that shows how to use it.
Bashar Abdulqaiyume
LEAD Technologies, Inc.
#4
Posted
:
Friday, October 28, 2005 8:11:47 AM(UTC)
Groups: Registered
Posts: 2
I'm using LEAD Image Rastering Pro v14 with VB6
how I can make it?
#5
Posted
:
Sunday, October 30, 2005 3:37:39 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
If you are using the OCX or COM objects, then use the DrawText method.
Bashar Abdulqaiyume
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.