Einzelnen Beitrag anzeigen

Benutzerbild von sirius
sirius

Registriert seit: 3. Jan 2007
Ort: Dresden
3.443 Beiträge
 
Delphi 7 Enterprise
 
#5

Re: Bild rund schneiden bzw. machen

  Alt 7. Nov 2007, 14:25
Warum erstellst du nicht schon das Zufallsbildchen nur innerhalb des Kreises?

Und so machst du das Image rund (bevor du malst)
selectobject(image1.Canvas.Handle,createellipticrgn(20,100,50,10));
Zitat:
HRGN CreateEllipticRgn(

int nLeftRect, // x-coordinate of the upper-left corner of the bounding rectangle
int nTopRect, // y-coordinate of the upper-left corner of the bounding rectangle
int nRightRect, // x-coordinate of the lower-right corner of the bounding rectangle
int nBottomRect // y-coordinate of the lower-right corner of the bounding rectangle
Dieser Beitrag ist für Jugendliche unter 18 Jahren nicht geeignet.
  Mit Zitat antworten Zitat