Click here to Skip to main content
14,486,515 members
   

C#

 
GeneralRe: Get Data From Deserialized List By Type Pin
Kevin Marois23-Jan-20 7:51
professionalKevin Marois23-Jan-20 7:51 
AnswerRe: Get Data From Deserialized List By Type Pin
BillWoodruff22-Jan-20 21:44
mveBillWoodruff22-Jan-20 21:44 
AnswerRe: Get Data From Deserialized List By Type Pin
Gerry Schmitz23-Jan-20 4:14
mveGerry Schmitz23-Jan-20 4:14 
QuestionException thrown: 'System.IO.FileNotFoundException' sqlite Pin
Member 1472399222-Jan-20 8:41
MemberMember 1472399222-Jan-20 8:41 
AnswerRe: Exception thrown: 'System.IO.FileNotFoundException' sqlite Pin
Richard Deeming22-Jan-20 8:54
mveRichard Deeming22-Jan-20 8:54 
Questionhow flip the canvas vertically ? Pin
Le@rner22-Jan-20 1:56
MemberLe@rner22-Jan-20 1:56 
AnswerRe: how flip the canvas vertically ? Pin
OriginalGriff22-Jan-20 2:29
mveOriginalGriff22-Jan-20 2:29 
GeneralRe: how flip the canvas vertically ? Pin
Le@rner22-Jan-20 19:19
MemberLe@rner22-Jan-20 19:19 
bool Draw_Mirror_Image = checkBox_mirror_image.Checked;

            bool Flip_horz_or_vert = radioButton_mirr_img_FV.Checked;
            //Flip_horz_or_vert     =   false for flip horizontal 
            //                  and =   true for flip vertical


            StringFormat stringFormat = new StringFormat();
            stringFormat.Alignment = StringAlignment.Center;
            stringFormat.LineAlignment = StringAlignment.Center;

            stringFormat.FormatFlags = StringFormatFlags.LineLimit;
            stringFormat.Trimming = StringTrimming.Word;


            RectangleF rect2 = panel2.ClientRectangle;
            float image_draw_wd = 200;
            float image_draw_ht = 100;

            int X = 0;
            int Y = 0;

            Brush myBrush = new SolidBrush(Color.FromArgb(128, Color.Blue));
            
            int ROW=3;
            int COL=3;
            Pen pen = new Pen(Color.Red, 4);

            float Zoom_Value = 100;

            float X_SF = 1;
            float Y_SF = 1;

            string draw_text = "35";

            Font draw_text_Font = new Font("Microsoft Sans Serif", 18, FontStyle.Bold);

            for (int r = 1; r <= ROW; r++)
            {
                X = 0;

                for (int cl = 1; cl <= COL; cl++)
                {

                    draw_text = "ROW : " + r.ToString() + "\nCOL : " + cl.ToString();

                    Rectangle dr_rect = new Rectangle(new Point(X, Y), new Size((int)image_draw_wd, ((int)image_draw_ht)));


                    if (Draw_Mirror_Image)
                    {
                        if (Flip_horz_or_vert == false)
                        {
                           //flip horz

                            pe.ScaleTransform(-X_SF, Y_SF);
                            //pe.TranslateTransform(-((X + image_draw_wd) * (float)(Zoom_Value / 100f)), 0);
                            pe.TranslateTransform(-((image_draw_wd) * (float)(Zoom_Value / 100f)), 0);
                        }
                        else
                        { 
                            //flip vert

                            pe.ScaleTransform(X_SF, -Y_SF);
                            //pe.TranslateTransform(0, -((Y + image_draw_ht) * (float)(Zoom_Value / 100f)));
                            pe.TranslateTransform(0, -((image_draw_ht) * (float)(Zoom_Value / 100f)));
                        }
                    }

                    pe.DrawString(draw_text, draw_text_Font, myBrush, dr_rect, stringFormat);

                    pe.DrawRectangle(pen, dr_rect);

                    X = X + (int)image_draw_wd;
                }


                Y = Y + (int)image_draw_ht;
                
            }


i use this to drawing

please chk this

[^]1.png - Google Drive[^]

[^]2.png - Google Drive[^]


[^]3.png - Google Drive[^]



how all cell flip on its same position

please help me

modified 23-Jan-20 1:25am.

AnswerRe: how flip the canvas vertically ? Pin
Gerry Schmitz22-Jan-20 7:26
mveGerry Schmitz22-Jan-20 7:26 
QuestionAsp.net Pin
RajaMohammed.A22-Jan-20 1:35
MemberRajaMohammed.A22-Jan-20 1:35 
AnswerRe: Asp.net Pin
OriginalGriff22-Jan-20 2:29
mveOriginalGriff22-Jan-20 2:29 
AnswerRe: Asp.net Pin
Richard Deeming22-Jan-20 3:11
mveRichard Deeming22-Jan-20 3:11 
AnswerRe: Asp.net Pin
Gerry Schmitz22-Jan-20 7:37
mveGerry Schmitz22-Jan-20 7:37 
QuestionConvert the data intered by the user to integer number Pin
Member 906313820-Jan-20 22:37
MemberMember 906313820-Jan-20 22:37 
AnswerRe: Convert the data intered by the user to integer number Pin
OriginalGriff20-Jan-20 22:47
mveOriginalGriff20-Jan-20 22:47 
AnswerRe: Convert the data intered by the user to integer number Pin
ZurdoDev21-Jan-20 3:09
mveZurdoDev21-Jan-20 3:09 
QuestionClear comments and rename var/method names at compile time Pin
Lupu5R3x18-Jan-20 0:49
MemberLupu5R3x18-Jan-20 0:49 
AnswerRe: Clear comments and rename var/method names at compile time Pin
OriginalGriff18-Jan-20 1:45
mveOriginalGriff18-Jan-20 1:45 
GeneralRe: Clear comments and rename var/method names at compile time Pin
Lupu5R3x18-Jan-20 4:17
MemberLupu5R3x18-Jan-20 4:17 
GeneralRe: Clear comments and rename var/method names at compile time Pin
Dave Kreskowiak18-Jan-20 4:43
mveDave Kreskowiak18-Jan-20 4:43 
GeneralRe: Clear comments and rename var/method names at compile time Pin
Lupu5R3x18-Jan-20 6:51
MemberLupu5R3x18-Jan-20 6:51 
GeneralRe: Clear comments and rename var/method names at compile time Pin
Richard MacCutchan18-Jan-20 4:52
mveRichard MacCutchan18-Jan-20 4:52 
GeneralRe: Clear comments and rename var/method names at compile time Pin
Lupu5R3x18-Jan-20 6:53
MemberLupu5R3x18-Jan-20 6:53 
GeneralRe: Clear comments and rename var/method names at compile time Pin
OriginalGriff18-Jan-20 4:52
mveOriginalGriff18-Jan-20 4:52 
GeneralRe: Clear comments and rename var/method names at compile time Pin
Lupu5R3x18-Jan-20 6:57
MemberLupu5R3x18-Jan-20 6:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.