עבור לתוכן
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.

היפוך תמונה ב- 90 מעלות

Featured Replies

פורסם

אז אני ממש חדש עם כל התכנות בחלונות עם ה- forms ב- c#

והתחלתי לעבוד על 'מציג תמונות' פשוט כזה-



private void upload_Click(object sender, EventArgs e)

{
if (folder.ShowDialog() == DialogResult.OK)
{
pictureBox1.Load(folder.FileName);
}

}

private void Flip_Click(object sender, EventArgs e)

{

pictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipXY);

}

אז ככה בפעולה הראשונה עשיתי כפתור שמעלים איתו תמונה למסך.

הכפתור השני אמור להפוך את התמונה ב- 90 מעלות שמאלה.. אבל הוא לא עושה כלום...

אם הייתי שם אותו אחרי ה- if בפעולה הראשונה לעומת זאת זה היה מעלה את התמונה והופך אותה ככה שהקוד עצמו בסדר

אז אני לא מבין מה הבעיה

והקוד קצת השתשבש בדרך לפה בהעתקה אבל לא נורא

פורסם

תוסיף

pictureBox1.Refresh();

אחרי ה

pictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipXY);

פורסם
  • מחבר

תודה עובד :)

ארכיון

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

דיונים חדשים

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.