![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#15
|
||||
|
||||
|
No desistas, hombre...
Mira este ejemplo para poder empezar y seguir: Código:
class TPrueba: public TWinControl
{
private:
TImage *Imagen;
TPanel *Panel;
public:
__fastcall TPrueba(TComponent* Owner);
};
Código:
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
TPrueba *Prueba = new TPrueba(this);
Prueba->Width = 200;
Prueba->Height = 200;
Prueba->Parent = this;
}
//---------------------------------------------------------------------------
__fastcall TPrueba::TPrueba(TComponent* Owner): TWinControl(Owner)
{
Imagen = new TImage(this);
Imagen->Parent = this;
Imagen->Align = alClient;
for(int y=0; y<200; y++) {
if((y%2)==0){Imagen->Canvas->Pen->Color = clRed;}else{Imagen->Canvas->Pen->Color = clBlue;}
Imagen->Canvas->Pen->Width = 1;
Imagen->Canvas->MoveTo(0,y);
Imagen->Canvas->LineTo(199,y);
}
Panel = new TPanel(this);
Panel->Top = 0;
Panel->Left = 0;
Panel->Width = 20;
Panel->Height = 20;
Panel->Parent = this;
}
|
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Dibujar Elipse y Parábola pixel a pixel | Deiv | Gráficos | 9 | 28-11-2016 10:19:41 |
| Como obtener el color de un pixel | ilichhernandez | Gráficos | 11 | 02-11-2006 15:40:00 |
| Guardar y recuperar | noipa | Varios | 3 | 07-02-2006 14:46:21 |
| pasar imagen pixel a pixel | gulder | Gráficos | 7 | 26-06-2005 02:10:45 |
| ¿ Cual es la mejor forma de implementar una Pizarra con Sockets? pixel a pixel ? | sase | Internet | 1 | 22-10-2003 16:23:50 |
|