Bonjour,
Je cherche a faire des WaterMark sous Borland C++. J'arrive a ecrire du texte sur une image grace a la fonction Textout, mais pas a rendre le text transparent.
Voila le code pour afficher un texte de travers :
Code :
- ZeroMemory(&lf, sizeof(LOGFONT));
- lf.lfHeight = 50;
- lf.lfEscapement = 10 * 45; // Nombre de degrés de rotation
- lf.lfOrientation = 10 * 45;
- lf.lfCharSet = DEFAULT_CHARSET;
- strcpy(lf.lfFaceName, "Tahoma" );
- ImageThumbCdrom->Canvas->Font->Handle = CreateFontIndirect(&lf);
- ImageThumbCdrom->Canvas->Font->Color=clYellow;
- ImageThumbCdrom->Canvas->TextOut(20, 200, "Oh yeah !!!" ); // Affiche le texte pivoté
|
Merci de votre aide!