עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

c# איך מצירים ? לצייר נקודות ...

Featured Replies

פורסם

1)לא יודע אבל נראה לי שהללכתי רחוק מידי למה זה קשור לדלגיטס?

2) אפשר לצייר ציור בתוך קוממפוננט מסויים כגון CPICTURE ?

3) דוגמא הוא קישור פשוט מאוד מאוד מאוד מאוד יעזרו לי

יא מבורכים ...

;)

פורסם

1) הקשר של דליגייט לכל העניין זה שבדרך כלל מציירים באוונט PAINT, שבעצם רושמים אליו DELEGATE.

myObject.Paint += the delegate

2) אולי אתה מתכוון לPICTUREBOX? כן.

3) בתוך אוונט הPAINT אתה מקבל את הארגומנטים של האירוע. נקרא לו לשם הנוחות ARGS

args.Graphics.drawSomething

חיפוש פשוט בגוגל העלה את התוצאות הבאות:

http://www.developer.com/net/csharp/article.php/1435391

פורסם

אם אתה מתכוון באפליקציה מסוג Win Forms , כשעל ה- forms אתה שם control מסוג picture box ודאג לטעון אותו לפני ריצה עם תמונה לבנה


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace App2
{
public partial class Form1 : Form
{
int x0 = 0;
int y0 = 0;
bool mouseIsDown = false;

public Form1()
{
InitializeComponent();
}

private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
{
if (mouseIsDown)
{
System.Drawing.Graphics g1 = pictureBox1.CreateGraphics();
g1.DrawLine(System.Drawing.Pens.Black, x0, y0, e.X, e.Y);
x0 = e.X;
y0 = e.Y;
}

}

private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
{
mouseIsDown = true;

x0 = e.X;
y0 = e.Y;
}

private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
{
mouseIsDown = false;
}
}
}

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.