Waitrud Weber’s blog

things and reminders for memories

windows-make: 3d: Trace a literature as 180.

We are going to:
1. Trace a literature as 180 on the pixmap.
2. Care about the vPoint as class in C++ and all of codes depend it or C language.
 
struct struct_trace {
vPoint candaudae_points;
vPoint angle_points;
vPoint thick_points;
struct_trace previous_points = NULL;
struct_trace nexxt_points = NULL;
};
 
2-1. Focus is defined in C.

*Codes Structure

- C++/C - dates
Data Points all C++ - 4/22
Data Trace C - 4/22
Focus C - -

 

*

C and C++ would be mixed, which is going to be one of confuse.wJackson_animation_focus_003.cpp should be coded as C++.




*Files

- File - Type Date
- - - - -
- - - - -
- - - - -
- - - - -
-       -
        -
        -
        -
- - - - -
- - - - -
- - - - -
- vDisplayController_003.cpp C++ Geometry 2023/01/08
- - - - -
- - - - -
- wButtonController.cpp C++ Accessary 2021/12/09 
- - - - -
- - - - -
- - - - -
- - - - -
- jackson_animation_focus_003.cpp C   4/22
- wJackson_animation_focus_003.cpp C thread functions 4/22
- winmainthread_005a_006.cpp C thread functions 4/22
- winmainthread_005.cpp C windows thread 4/22
- - - - -
- - - - -








*words

- - - -
- - - -
anxious

 

 

very eager or concerned to do sth ... - Google

 

- -
consus

en.wikipedia.org

- -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -
- - - -





windows-make: 3d: Linear 0.5 as small should be ...

We are going to draw number as fonts, depending on the reason below.

Reanson:
Linear for that fexible scale should be calculated. And, that work is very fast if that is small on the display.

*

- - - -
-

Normal:

- -
- margin x 1:

- -
-

Small focus only:

 

-

 

-
-

Linear revicement:

By Linear:

- -
-

font back ground transparency...

The transparancy calculation comes from ppm value which has not (it).

*alternative

I'm not confident of such expression with braces but I saw it.

- -
- rasio 0.8:

- -
- rasio 0.8: slide to right.

- -
- - - -
- - - -
- - - -
- - - -

*

We are going to define print messages flag as we choose if that message is on or off for not printed.

*

- - - -
debug flag 18 int Draw_Focus_Number (int number_p ); -
  19 - -
- - - -
- - - -
- - - -

 

windows-make: cg: pixmap fonts are displayed well or not.

I focused on "320" but the result is "DCA" and broken like slush. And, rect value is right calculated.


...
i 498 j 234 <- x 50, y 936 v -50070271
i 499 j 234 <- x 51, y 936 v 0
i 500 j 234 <- x 52, y 936 v -50070271
i 501 j 234 <- x 53, y 936 v -50070271
i 502 j 234 <- x 54, y 936 v -50070271
i 503 j 234 <- x 55, y 936 v -50070271
i 504 j 234 <- x 56, y 936 v -50070271
i 505 j 234 <- x 57, y 936 v -50070271
i 506 j 234 <- x 58, y 936 v -50070271
i 507 j 234 <- x 59, y 936 v -50070271
i 508 j 234 <- x 60, y 936 v -50070271
i 509 j 234 <- x 61, y 936 v -50070271
i 510 j 234 <- x 62, y 936 v 0
i 511 j 234 <- x 63, y 936 v -50070271
int Draw_Focus_Number (0) ends.
int Draw_Jackson_Focus_Number () ends.
press r ends.
WM_KEYUP=uMsg=257 flg_paint=1 wParam 82 lParam -1072496639
int paint_wm_006 () DRAW_PARAM 17152 start.
int first_process () starts.
int first_process () ends.
00000000000000000000000100000000
00000000000000000000001000000000
int wm_paint_006_canvas_001 () starts.
Canvas were drew and executed on the above.
fc start x 320 start y 180 font_width 320 font_height 180
nf start x 0 start y 882 font_width 640 font_height 55
i 000 start x 0 start y 882 font_width 64 font_height 55
i 001 start x 64 start y 882 font_width 64 font_height 55
i 002 start x 128 start y 882 font_width 64 font_height 55
i 003 start x 192 start y 882 font_width 64 font_height 55
i 004 start x 256 start y 882 font_width 64 font_height 55
i 005 start x 320 start y 882 font_width 64 font_height 55
i 006 start x 384 start y 882 font_width 64 font_height 55
i 007 start x 448 start y 882 font_width 64 font_height 55
i 008 start x 512 start y 882 font_width 64 font_height 55
i 009 start x 576 start y 882 font_width 64 font_height 55
small start x 448 start y 180 font_width 64 font_height 55
int wm_paint_006_canvas_001 () ends.
00000000000000000100000000000000
WM_PAINT=uMsg=15 flg_paint=1 hDC 453053697 DRAW_PARAM 17152
int paint_wm_006 () DRAW_PARAM 17152 b_Processed 2 ends.
WM_PAINT=uMsg=15 flg_paint=1 hDC 453053697 DRAW_PARAM 17152
...

*rect value

- start_x start_y width height
- 882  640 55
- - - - -
[0] 0 882 64 55
[1] 64 882 64 55
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -

 

Modification of read ppm is right, that was possible for codes mistaken.

...
width 320 height 180
int read_ppm_head ( FILE *fp, int* start_x, int* start_y, int* width, int* height) ends.
x 0 y 0 w 320 h 180 debug_ppm[4] 0
We could allocate read_ppm->ppm_canva as width 320 of image sizeof(RGBT) 4
We could initialize read_ppm->ppm_canva as width 320 and height of  image
int read_ppm_image_binary ( FILE *fp, int* start_x, int* start_y, int* width, int* height, RGBT** canvas ) starts.
last i-1 319 j-1 179 r52 g157 b157 t0
int read_ppm_image_binary ( FILE *fp, int* start_x, int* start_y, int* width, int* height, RGBT** canvas ) ends.
int read_ppm (char* filename, READ_PPM* read_ppm) ends.
WM_KEYUP=uMsg=257 flg_paint=1 wParam 85 lParam -1072300031
int paint_wm_006 () DRAW_PARAM 17152 start.
int first_process () starts.
int first_process () ends.
00000000000000000000000100000000
00000000000000000000001000000000
...

 

*

- - - - -
- - - - -
-

- - -
-

x 0 y 900 w 640 h 55

- - -
-

x 0 y 880 w 640 h 55

- - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -

 

#MinGW

windows-make: WinAPI:Focus on the draw area.

We could balance the program but that is surely ensured as well programmer.
Now, easy things are, we can say, hard.


*

- - - -
-

 

- - -
- - - -
- - - -
- Red Bar:

- -

-

 

Focus on the view:

 

-

-
-

Draw Grid:

- -
-

*
focus and grid and little focus.

...
i 505 j 234 <- x 57, y 936
i 506 j 234 <- x 58, y 936
i 507 j 234 <- x 59, y 936
i 508 j 234 <- x 60, y 936
i 509 j 234 <- x 61, y 936
i 510 j 234 <- x 62, y 936
i 511 j 234 <- x 63, y 936
int Draw_Focus_Number (0) ends.
int Draw_Jackson_Focus_Number () ends.
press r ends.
WM_KEYUP=uMsg=257 flg_paint=1 wParam 82 lParam -1072496639
...

- -
-

something draw test

- -
-

font size:

font draw but that values can not be copied.

- -

 

windows-make: WindowsAPI: boxex are well.

Situation1:
We could not use a canvas as image.
And, so, We checked if the boxex program is well or not.

Execution:
press 'r' ->
Boxex were resqued.
And, we are going to draw other boxex again and again.

 

Codec Printed:
...
int Check_Initialize_Param () returns as 1.
debug_ppm[14] 0
int initialize_canvas () starts.
int initialize_canvas () ends.
press r ends.
WM_KEYUP=uMsg=257 flg_paint=1 wParam 82 lParam -1072496639
int paint_wm_006 () DRAW_PARAM 17152 start.
int first_process () starts.
int first_process () ends.
00000000000000000000000100000000
00000000000000000000001000000000
int wm_paint_006_canvas_001 () starts.
Canvas were drew and executed on the above.
fc start x 0 start y 0 font_width 640 font_height 55
nf start x 640 start y 882 font_width 640 font_height 55
i 000 start x 0 start y 0 font_width 64 font_height 55
i 001 start x 64 start y 64 font_width 64 font_height 55
i 002 start x 128 start y 128 font_width 64 font_height 55
i 003 start x 192 start y 192 font_width 64 font_height 55
i 004 start x 256 start y 256 font_width 64 font_height 55
i 005 start x 320 start y 320 font_width 64 font_height 55
i 006 start x 384 start y 384 font_width 64 font_height 55
i 007 start x 448 start y 448 font_width 64 font_height 55
i 008 start x 512 start y 512 font_width 64 font_height 55
i 009 start x 576 start y 576 font_width 64 font_height 55
int wm_paint_006_canvas_001 () ends.
00000000000000000100000000000000
WM_PAINT=uMsg=15 flg_paint=1 hDC 117509032 DRAW_PARAM 17152
int paint_wm_006 () DRAW_PARAM 17152 b_Processed 2 ends.
WM_PAINT=uMsg=15 flg_paint=1 hDC 117509032 DRAW_PARAM 17152
WM_MOUSEMOVE=uMsg=512 flg_paint=1 DRAW_PARAM=17152
...

code:
int set_fonts_param_frm_rect_values (int *fonts_width, int *fonts_height, int *fonts_start_x, int *fonts_start_y ) ;

image:
20240330-press-r-001-01.png

*

#MinGW

windows-make: WinAPI: The program could display objects.

The program displayed something but  didn't any other on the window.

We should code them well as maximum to full any software property anyway.

 

*

- source code - -
-

.\winmainthread_005a_006.cpp  File modified time Mon Mar 25 13:34:49 2024

0969 //
0970 int wm_paint_006_cell_004 () {
0971     // 5
0972     for ( i = 0; i<5; i++ ) {
0973         log_a[i] = dlog_001->log_list[ i + dlog_001->from ];
0974     }
0975     for ( i = 0; i<5; i++ ) {
0976         sprintf( log_cursol[i], "%d", i + dlog_001->from + 1);
0977     }
0978 
0979     hPen = CreatePen(PS_DASHDOT,1,RGB( 255, 255, 128));
0980     SelectObject(p_evt->hDc, hPen);
0981     SetBkColor(p_evt->hDc, RGB( 0, 128, 0));
0982     SelectObject(p_evt->hDc, CreateSolidBrush(RGB(0,128,0)));
0983     for ( i = 0; i<5; i++ ) {
0984         Rectangle( (HDC) hDC, rect_log[i].left, rect_log[i].top, rect_log[i].right, rect_log[i].bottom );
0985         Rectangle( (HDC) hDC, rect_log_cursol[i].left, rect_log_cursol[i].top, rect_log_cursol[i].right, rect_log_cursol[i].bottom );
0986     }
0987 
0988     hFont = CreateFont (13, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_SWISS, "Arial");
0989     hFont2 = (HFONT)SelectObject((HDC)hDC, hFont);
0990     SetTextColor( hDC, RGB( 255, 255, 128) );
0991     for ( i = 0; i<5; i++ ) {
0992         DrawText( (HDC) hDC, TEXT( log_a[i] ), -1, &rect_log[i], DT_LEFT );
0993         DrawText( (HDC) hDC, TEXT( log_cursol[i] ), -1, &rect_log_cursol[i], DT_LEFT );
0994     }
0995     return 0;
0996 }
0997 

- -
- - - -
- - - -
- - - -
- - - -
- - - -

 

*

 

windows-make: WindowsAPI: Displayed error occured.

Displayed error occured.

*
That reason is,

1. Sub lootin messages like "... starts." or "... ends." are printed[1].
2. Screen captured of windows program display the draw sub lootins.

*
Any lootin means sub lootin itself on windows programming.

*

 

*3d one
Situations and that reason should be ensured as Law and Softwqare habiits.

 

 

windows-make: WindowsAPI: Draw something impressive and error one. - Waitrud Weber’s blog (hatenablog.com)

*

No. - - -
1 Software could step work on the code step by step each raw.  - -
2 Running process is ensured in the message of the sublootin start and end. - -
3 Software bad affection on the visual users could capture. and report it. - -
- - - -
- - - -
- - - -

 

*