Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, August 31, 2005 11:18:21 PM(UTC)
b.schorre

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

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, September 5, 2005 9:25:29 PM(UTC)
b.schorre

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:51:09 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,040

Was thanked: 1 time(s) in 1 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:16:47 AM(UTC)

info2  
info2

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:42:39 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,040

Was thanked: 1 time(s) in 1 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.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.233 seconds.