C Sharp :: Viewing A DICOM In A PictureBox?

Feb 5, 2014

I've been looking for a C# library that is well documented and can show DICOM (medical CT scan data, including the image) as jpeg/bmp data that is viewable in a PictureBox.

I've only found OpenDicom which is more or less unsupported now and EvilDicom - whose owner has made some significant changes to it, making all existing stack overflow questions on it irrelevant.

View 1 Replies


ADVERTISEMENT

C Sharp :: Scroll Images In Dicom Viewer Using Scroll Bar?

Aug 28, 2012

I want to know how to scroll images in dicom viewer using scroll bar control

View 1 Replies View Related

C Sharp :: Saving Picturebox Image With Graphics In It

Aug 23, 2013

What i'm trying to do is load an image from my database create some graphics to it. probably just some lines and marks and save it back to my database. here's so far what I got.
 
for creating graphics:  
 } private void pictureBox3_MouseDown(object sender, MouseEventArgs e) {
            draw = true;
        } private void pictureBox3_MouseMove(object sender, MouseEventArgs e)  {
            if (draw)  {
                Graphics g = Graphics.FromImage(pictureBox3.Image);
 
[Code] ....

but the saving part doesnt work :( I think it only saves the image loaded to the picturebox but not the graphics created to it. how to merge it? i've tried to google it and found some sort of same cases but fails to make it work, something like converting it to bitmap.

View 2 Replies View Related

C Sharp :: Motion Of Controls - Picturebox Position In Form?

Apr 8, 2012

I have a form with a picturebox and some buttons to move the picturebox. I don't want the user to guide the picturebox out of the form even by dragging the form border picturebox moves just in the form border, and also there is a button to guide the picturebox to the start position (start choose by user). What can i do?

View 1 Replies View Related

C# :: Make A Picturebox Move Inside Another Picturebox From Left To Right

Mar 3, 2014

I'm currently reading/programming from "Head first C#" book. I have this project which is making a program that has four dogs which race and there are three players that can bet on the race. I need to learn how to make the "dogs" (picture boxes) move from left end to the right end of a picture box.

Here is the code:

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

[Code].....

View 2 Replies View Related

C++ :: Viewing Slider Value WINDOWS?

Apr 21, 2014

I have my dialog set upand I am trying to view a slider controls value. This is not to do with .NET framework it is the old controls.

View 1 Replies View Related

C# :: How To Use Image Control Viewing

Aug 19, 2014

how I could use a Image control where I can upload an image to a folder(done that) and then take that image right after uploading it (in the same line of code) view it on the image control...

View 5 Replies View Related

Visual C++ :: Viewing Resources In A DLL

Dec 12, 2013

Any utility that would allow me to display the resources in a DLL? i.e. if the DLL contains icons / bitmaps etc I'd be able to view them. I've a feeling that such a tool exists but I can't remember what it's called.

View 1 Replies View Related

C# :: Viewing And Changing Data In DGV With SQL Database File

Mar 4, 2014

Background: I've created a projected and added a mdf database file to it.

I am attempting to fill my datagridview with data from a table that I've added to my mdf file.

I am having a hell of a time figuring out the correct connection string and datasource file path for it.

I've decided on using OleDB because that's what I am most familiar with.

I clearly see the rule "Don't tell us to give you code!" but I cannot find a good tutorial from START to FINISH on how to do what I am trying to do.

As stated, I think my connection string is wrong. Even if I change it to

OleDB (string conStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Database.mdf"

I get a new error saying it cannot recognize the database format.

public partial class DataViewer : Form {
string conStr = "Provider=SQLOLEDB;Data Source=Database.mdf";
DataSet dS = new DataSet();
DataSet tdS = new DataSet();
OleDbConnection con = null;

[Code] ....

View 2 Replies View Related

Visual C++ :: Windows Explorer - Open Files With Different Extensions For Viewing Purposes Only

Feb 16, 2013

I have an application that Opens files with different extensions for viewing purposes only. I use MFC with Multi-Document template.

When I go to Windows Explorer in Windows 7 and right-click on Libraries - Documents, and scroll down to New, Explorer shows multiple links for creating new files with these different extensions.

My application does not create New documents. It just opens them for viewing purposes. In fact, I have disabled the New portion of the mainframe window.

My code includes:
EnableShellOpen();
RegisterShellFileTypes(TRUE);

I am at a loss as to what portion of my code would have placed these links into Windows Explorer!

Is there any way to prevent them from being created in the first place?

View 4 Replies View Related

C# :: Could Not Find File PictureBox

Mar 24, 2015

I am working with windows mobile 6.5 and sql compact, trying to create application to save pic on database but when i try to save pic that loaded to picturebox it giving this error "could not find file 'picturebox" and in windows mobile we don't have imagelocation property and this is code that i use it

using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;

[code]....

View 3 Replies View Related

C# :: Picturebox Size In Parent Container

Aug 22, 2014

I have a picture box, inside a table layout panel. The default size for the picture box is 456, 457. However, what I want to do is have the picture box be the size of the available area, even if the form is full screen.

I have the picture box dock set to fill etc. but not matter what I do, it refuses to change the dimensions from the ones above.

The only work around I could find that worked was this:

this.pbMainMap.Size = new Size(Screen.GetWorkingArea(this).Width, Screen.GetWorkingArea(this).Height);

Which is pretty useless if you are using a table layout panel. Can I grab the dimensions from the cell I am in or something?

View 4 Replies View Related

C# :: PictureBox To Memory Stream In Socket?

Mar 7, 2014

I Was Try To Change PictureBox To The Memory Stream And Then I Read Memory Stream Bytes And I Send Over The Netwrok Here Is Code

MemoryStream ms = new MemoryStream();
pictureBox1.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); // we save the image in side the Memory strem
byte[] pic_array = new byte[ms.Length];
ms.Position = 0;
ms.Read(pic_array, 0, pic_array.Length); //

[Code]...

but when i want get the Data o mean Bytes from Network tream How can i save in memory stream then dispaly in the picture box ? i try some thing but it is gave me error !

Socket handlerSocket = (Socket)alSockets[alSockets.Count - 1];
NetworkStream networkStream = new
NetworkStream(handlerSocket);
int thisRead = 0;
int blockSize = 1024;

[Code]...

View 2 Replies View Related

C# :: Using Combobox To Change Image In Picturebox?

Jun 13, 2014

I've been working on making a sprite generator and this is one thing that has kept giving me difficulties. No matter what I've looked up nothing directly says how to nor can I find anything on a similar topic to try and apply to it either. I know how to add the resources and names for the options but how do I get the options to make my picturebox image change in relation to the selection?

View 4 Replies View Related

C# :: Retrieve Image From Database And Display In Picturebox

Sep 18, 2014

I am creating an employee details project, the image is getting stored in the database but i am not able display it in the picture box.

private void button1_Click(object sender, EventArgs e) {
SqlConnection con = new SqlConnection(Connectionstring);
con.Open();
SqlCommand cmd = new SqlCommand("select photo from emprecordtable where eid='"+comboBox1.Text+"'", con);
//SqlDataAdapter da = new SqlDataAdapter(cmd);
//DataSet ds = new DataSet();

[code] ....

In sql server i have table called emprecordtable and i have the fields eid, rfid, empname, designation, phno, addres, and photo which is the image field and i have given the datatype as image but in the database the image is getting stored as Binary Data.. So, how to display in the picturebox from the database.

View 11 Replies View Related

C# :: Draw Multiple Rectangles With Mouse In Picturebox

Jun 6, 2014

I am trying to build a WinForm application that will allow you to load an image into a picturebox and then draw multiple rectangles (empty or translucent) to kind of highlight areas. I want all the rectangles to stay on the image (i can take care of a clear method later). The code below has the latest two attempts I've tried. One is all commented out and the other is not. Both will load the image just fine but neither will allow me to draw/select rectangles on the image.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;

[Code] ....

View 14 Replies View Related

C Sharp :: Why Start From 1 Not From Zero

Jul 16, 2013

char []c =null;
c=new char[1]; 

why star from [1] not from [0]???

View 1 Replies View Related

C Sharp :: What Are Ticks And How To Use Them

May 15, 2013

I have to do a strobe moodlight lab and it says to use ticks. But I don't quite understand ticks. Do you just input it in like Ticks 1 = new Color(0,0,0); or do you have to do something do something else.

View 2 Replies View Related

C Sharp :: How To Insert Data In SQL

Apr 2, 2013

I don't know coding to Insert data in sql with C# language and I want to save data with the click event of save button

View 4 Replies View Related

C Sharp :: Use A Program To Add New Class?

Nov 30, 2012

Whether it is possible to add a new class to a program? For example: program a is my main program and I want to use program b to just add a new class to program a.

View 5 Replies View Related

C Sharp :: Get Value Cell From Datagridview

May 27, 2013

I am using C# to build up a application. Otherwise, i have two forms, the first form is frmMaterial and the second form is frmMaterialList. frmMaterial has a textbox to get value from datagridview of frmMaterialList. My code doesn't work. How to get value from datagridview of frmMaterialList into textbox of frmMaterial?

Note: frmMaterial has a button to load frmMaterialList

View 2 Replies View Related

C Sharp :: Condition For Add New Row In Datagridview

Sep 13, 2014

I have two table the first is called Imprrests and the second is called ]IprestsPays. There is an Imprest_ID column that is primary key in [icode]Imprests[/code] table and foreign key in ImprestsPays table

Imprests table consists the following columns:
Imprest_ID,  Impres_value,  Imprest_date,    Employee_ID

Where Employee_ID column is primary key in Employees table and foreign key in Imprests table.

ImprestsPays table consists the following columns:
ID,  Payment_value,  Payment_date,  Imprest_ID

My problem is in the buttonadd_click event in Imprsts form.

I want to prevent user from insert any new imprest for employee in Imprests table if employee haven't paid all payments in ImprestsPays table for old imprest...

View 1 Replies View Related

C Sharp :: How To Assign String Value In C#

Dec 3, 2012

Below assignation? It is a bit confusing.

myString = ""myInteger"is";

View 1 Replies View Related

C Sharp :: What Are Different Types Of Interfaces

Jul 11, 2013

he was asking various types of implementing interfaces in csharp,

View 1 Replies View Related

C Sharp :: How To Add ICO File To Use For NotifyIcon

Dec 8, 2012

Simply put, i created a .ico file and i want to use it as the NotifyIcon icon. But i can not for the life of me figure it out..

View 2 Replies View Related

C Sharp :: How To Shift From One Tab To Other Programmatically

Apr 24, 2012

when we are trying to shift one tab to other one event should occur, can any one tell what is the event,how and where we have to write the event? give example. if he successfully login in first tab only then second tab will open,if he doesnt login in first and tries to open the second tab message should appear...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved