Questions tagged as 'picturebox'

2
answers

Count how many pixels of a color the image has

I'm working on a solution for tattoo studios. I would like to know how it would be possible to determine how many pixels of a given color exists in the image inserted in pictureBox1 . In this image, for example, would it be possible...
asked by 28.12.2015 / 01:50
1
answer

How do I get a part of an image?

Based on this image as would be the code to separate into, as if it were sub image without dividing this image into different files: Ex: void splitImage(int numeroDeDivisoes, ref Image original, out Image[] final){ // aqui seria que ne...
asked by 20.04.2015 / 14:26
1
answer

How to find an object by name only?

I have 6 PictureBox , so when saving the photo in the database, saved together in which PictureBox it was. Then, when loading photos into a view, I need each photo to be displayed in its PictureBox , I query the database by...
asked by 19.05.2017 / 20:46
1
answer

c # delete drawstring in picturebox

I have a pictureBox where the user at each click of the mouse inserts a text on top of an image in a pictureBox. It inserts several texts in several points of the image, the inserted text gets picked up from checkboxes. Using this code pri...
asked by 02.08.2017 / 18:45
1
answer

Add a new variable to a component (PictureBox)

I am creating a game for a college job, this game consists of several Picturebox , one is the main character who walks, jumps and shoots, PictureBox of shots and PictureBox of monsters (randomly generated by a Random ),...
asked by 22.11.2018 / 15:00
1
answer

Save Image c #

I'm having the following error Generic GDI + error. when trying to save the image to a specific directory. I'm using code below. string caminho=@"\.1.1.10\sistema"; Stream myStream = null; OpenFileDialog abrir = new OpenF...
asked by 17.06.2015 / 19:40
0
answers

How to get part of an image using bitmap C # [closed]

Well, I'm studying bitmaps, and I downloaded a pdf which said that an image was an array of pixels. Since it is an array (which is quite logical) there is how to define points within the image, mark a region so to speak. The bitmap class as well...
asked by 24.07.2017 / 13:25
1
answer

How to display an image hosted in my App?

I would like to display a promotional image within a PicutreBox in my app, but this image will vary depending on the promotion the Company is making. Is there any code that PictureBox shows a certain image that is hosted somewhe...
asked by 18.01.2017 / 20:09
1
answer

Adding value in the picturebox

I'd like to know if you have any way to make it work here int chck = 0; int fid = 0; while (chck < 150) { try { sqlcon.Open(); string sql2 = "SELECT img FROM clienteimg...
asked by 05.02.2018 / 03:18
1
answer

c # Move image without trace

I'm moving a picturebox over another with a mouse. But it leaves a trail behind when I move the mouse, the trail disappears right away, but is there a way to remove it? I tried to take the refresh() when the image moves, it takes the t...
asked by 16.08.2017 / 17:35