Search found 43 matches: revamped

Return to advanced search

Re: Drawing on a TImage and save (revamped) :-) [Solved]

Uwe,

sorry, you still haven't understood my problem. But it's solved for me. Thank you anyway.

EMG
by Enrico Maria Giordano
Mon Apr 07, 2014 4:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319

Re: Drawing on a TImage and save (revamped) :-) [Solved]

Enrico, You don't need to call DRAWIMG ( inside Your drawing function ! I added 10 different painting-styles and now I can draw and merge everything I want to do with the image and export to a different format. The styles are defined INSIDE DRAWIMG(.... !!! I'm using a maximum of a drawing area. The...
by ukoenig
Mon Apr 07, 2014 3:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319

Re: Drawing on a TImage and save (revamped) :-)

Cristobal, Function DrawOver( oImg )Local x Local yFor x = 10 to 50   //For y = 10 to 50       DrawImg( oImg, x )       SysWait( 0.009 )         //Next yNext xReturn Nil Your idea is not that bad in the end! I simply call DrawImg() less times and then the speed is very good n...
by Enrico Maria Giordano
Sun Apr 06, 2014 11:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319

Re: Drawing on a TImage and save (revamped) :-)

Cristobal, I really don't know how to explain it better than a sample. I'd like to see the processing while it takes place, not all at a time at the end. This is the sample. Please use an image bigger than 1000 x 1000. #include "Fivewin.ch"#define SRCCOPY 13369376FUNCTION MAIN()&nb...
by Enrico Maria Giordano
Sun Apr 06, 2014 9:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319

Re: Drawing on a TImage and save (revamped) :-)

Ahhhh!, Ok
If you explain a little more, I can try to help
by cnavarro
Sun Apr 06, 2014 7:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319

Re: Drawing on a TImage and save (revamped) :-)

Cristobal,

cnavarro wrote:
Enrico Maria Giordano wrote:Too slow. :-(

EMG

Has probado con lineas enteras?

Have you tried with whole lines?

Code: Select all  Expand view

LineTo( hDc,x,y )
 


This is only a sample. I must process the image with complex algorithms not with point or lines.

EMG
by Enrico Maria Giordano
Sun Apr 06, 2014 7:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319

Re: Drawing on a TImage and save (revamped) :-)

Define on top : nPensize := 50 nPenColor := 255 hPen := CreatePen( 0, nPensize, nPenColor ) // ----- STATIC FUNCTION DRAWIMG( oImg, hDC, hPen, nPensize, nPenColor ) LOCAL nWidth := oImg:nWidth() LOCAL nHeight := oImg:nHeight() LOCAL hMemDC := CREATECOMPATIBLEDC( hDC ) LOCAL hMemBmp := CREATECOMPATIB...
by ukoenig
Sun Apr 06, 2014 12:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319

Re: Drawing on a TImage and save (revamped) :-)

Enrico Maria Giordano wrote:Too slow. :-(

EMG

Has probado con lineas enteras?

Have you tried with whole lines?

Code: Select all  Expand view

LineTo( hDc,x,y )
 
by cnavarro
Sat Apr 05, 2014 10:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319

Re: Drawing on a TImage and save (revamped) :-)

Try removing the Drawimg syswait function
Put the syswait of DrawOver function in 0.0001
They are testing the processor?
by cnavarro
Sat Apr 05, 2014 10:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319

Re: Drawing on a TImage and save (revamped) :-)

Tried. As I suspected. Too slow. :-(

EMG
by Enrico Maria Giordano
Sat Apr 05, 2014 10:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319

Re: Drawing on a TImage and save (revamped) :-)

Or not? I'll make some experiment and let you know, thank you.

EMG
by Enrico Maria Giordano
Sat Apr 05, 2014 9:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319

Re: Drawing on a TImage and save (revamped) :-)

Cristobal,

cnavarro wrote:
Code: Select all  Expand view


Function DrawOver( oImg )
Local x
Local y
For x = 10 to 50
   //For y = 10 to 50
       DrawImg( oImg, x )
       SysWait( 0.009 )      
   //Next y
Next x
Return Nil


This would unacceptably slow the paint down, sorry. :-(

EMG
by Enrico Maria Giordano
Sat Apr 05, 2014 9:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319

Re: Drawing on a TImage and save (revamped) :-)

Uwe, Enrico, I used the maximum possible painting-area with my used screenresolution of 1024 x 768 I coudn't find any problem. Please try with: STATIC FUNCTION DO_CALC( hMemDC )LOCAL x, yFOR y = 0 TO 1000    FOR x = 0 TO 1000        SETPIXEL( hMemDC, x, y, C...
by Enrico Maria Giordano
Sat Apr 05, 2014 9:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319

Re: Drawing on a TImage and save (revamped) :-)

Uwe, you paint an area that is too small. Try to paint an area of 1000 x 1000 and you will see the problem. I repeat what the problem is: I'd like to see the painted area gradually growing during the paint operation. EMG Enrico Si lo he entendido bien If I understand correctly Function DrawOver(...
by cnavarro
Sat Apr 05, 2014 9:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8319
Next

Return to advanced search