picturebox

Displaying a Image previous scanned or retrieved in Picturebox

久未见 提交于 2019-12-11 16:18:14
问题 I just want some help for my project which is RFID attendance system. The RFID tag should be scan to retrieve the information and Image from the database mysql. The first student will scan his RFID tag to display his picture in picturebox1 and when another student scan the picturebox1 will be updated to a new student picture and data and the previous one is on the picturebox2 displayed The issue here is how can I display the previous Image of the student. Just only the Image ,the data is not

Zoom on a PictureBox (Windows Mobile)

泄露秘密 提交于 2019-12-11 14:51:53
问题 I'm developing an app for Windows Mobile. I would like to make zoom on a PictureBox's image. How can I do this? I think this is more complicated because I'm doing for Windows Mobile . Thank you! 回答1: Almost all questions that have to do with Windows Mobile are answered with OpenNetCF. While I haven't tried this, OpenNetCF has a picture box control with a Scale() method. Perhaps this is what you're looking for. If you use the ImageViewer control, you will get Zoom in/out. 来源: https:/

C# How to rotate & resize image in same form?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 14:14:10
问题 I want to rotate and resize an image. The rotation is not 90 degrees so cant use rotateflip. Tried using picturebox can resize easily but cannot rotate. I tried this guy's method https://www.youtube.com/watch?v=S9uSKO-BIgs. the rotation works but now it cannot be resized. Tried to resize the bitmap but its get cropped instead of resized. Anyone know method to rotate picturebox or other method to both resize & rotate image? Thank you very much 来源: https://stackoverflow.com/questions/59191658/c

picturebox doubleclick and click events

自古美人都是妖i 提交于 2019-12-11 13:19:23
问题 I have a picturebox and 2 events: picbox.Click += new System.EventHandler(clickpicbox); picbox.DoubleClick += new System.EventHandler(picbox_DoubleClick); Now, the click event works just fine but the doubleclick doesn't even get fired!! What might cause this? If I remove the Click event then the doublecklick gets fired, so it's weird.. I have nothing in those events by the way, as I'm testing what it may be I did not include any code in the actual functions for each event.. Thanks! 来源: https:

VB.NET Move Dynamic Borderless Form via PictureBox

左心房为你撑大大i 提交于 2019-12-11 12:18:35
问题 From the dynamic form I added. I realized that I can't get a gif animation to run in the form's background. So I thought I'd give it a try by embeding a picturebox on the dynamic form, but it's not working hence why I'm here. So on my main form (Form1) I have 2 buttons, openfiledialog, and a picturebox. When you click button1 you browse for the an image to display in the picturebox, and when you press button2 as you can see from the code below. It'll open a new form, but what I want is to

Set image source to picturebox which is added dynamically to Table Layout Panel

独自空忆成欢 提交于 2019-12-11 11:07:31
问题 I followed instructions from this page to insert controls to tableLayoutPanel. http://goo.gl/SVKf8D I am using this code to try to add a dynamic picturebox and set it's source: tableLayoutPanel1.Controls.Add(new PictureBox() { Image.FromFile(TableLayoutPanelTool.Properties.Resources.BaldGuyImage)}, 0, 0); I cannot insert image source to picturebox this way. What I need: A way to set the image to the Picturebox that I have added dynamically to the TableLayoutview note:it is ok to give source

Draw a line using buttons as a coordinates on a PictureBox

北慕城南 提交于 2019-12-11 10:07:07
问题 Currently I am making a searching program for Rooms/Office based on the image shown. I am having trouble on the program that I want show a line on the 2D map where buttons will be use to connect each coordinates of the line. But after searching a room no lines that will appear. private void button2_Click(object sender, EventArgs e) { System.Drawing.Pen myPen; myPen = new System.Drawing.Pen(System.Drawing.Color.Red, 5); System.Drawing.Graphics frmGraphics = pictureBox1.CreateGraphics(); if

Show a lot of images with really low memory using in C#?

懵懂的女人 提交于 2019-12-11 09:42:00
问题 I have a form in which I dynamically create 8 PictureBox es in a Panel in which I show 8 different images, one every PictureBox . Images are 50Kb Jpeg. The problem is that I want to allow user to see also 300 pictures,that's like 38 panels, but every time I LOAD images into PictureBox es my program uses 5-7Mb of Ram memory MORE .( I see it from the Windows' task manager) How can i reduce that increment? My Pictures aren't that big, I only want to show a preview, i don't care about quality.

keep pictureBox's corner outside the bounds of the panel

偶尔善良 提交于 2019-12-11 08:19:16
问题 Here is my code: Private Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e As MouseEventArgs) Handles PictureBox1.MouseMove If (e.Button = Windows.Forms.MouseButtons.Left) Then Me.PictureBox1.Location = New Point((Me.pbpos.X + (Control.MousePosition.X - Me.offset.X)), _ (Me.pbpos.Y + (Control.MousePosition.Y - Me.offset.Y))) End If End Sub This is the picture, not yet dragged. Ofcourse it does not fit the screen, although the top and the left side is the edges of the picture. (the

slow picture box

允我心安 提交于 2019-12-11 08:06:19
问题 I am writing a simple Ludus Latrunculorum game for my project at school and am using Picture Boxes in order to represent the pieces for the game. However, when I use a background image - any background image for panel I am placing the piece at, it draws them very slowly. As if it places 1 picture top left, then waits about 0.005 and places the next one, until the board is filled. I've tried replacing the background image with a 1x1 white image, same outcome. BUT, when I make the background a