Click here to Skip to main content
15,895,656 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Numbering Puzzle in C++ Pin
toxcct17-Feb-06 1:51
toxcct17-Feb-06 1:51 
GeneralRe: Numbering Puzzle in C++ Pin
chrizpl17-Feb-06 2:15
chrizpl17-Feb-06 2:15 
GeneralRe: Numbering Puzzle in C++ Pin
toxcct17-Feb-06 2:18
toxcct17-Feb-06 2:18 
GeneralRe: Numbering Puzzle in C++ Pin
chrizpl17-Feb-06 2:36
chrizpl17-Feb-06 2:36 
GeneralRe: Numbering Puzzle in C++ Pin
Cedric Moonen17-Feb-06 2:47
Cedric Moonen17-Feb-06 2:47 
QuestionHow to understand the macro Base_Offset? Pin
uglystone17-Feb-06 0:53
uglystone17-Feb-06 0:53 
AnswerRe: How to understand the macro Base_Offset? Pin
toxcct17-Feb-06 4:28
toxcct17-Feb-06 4:28 
QuestionZOOM in PICTUREBOX Problem !!!!!!!! Pin
hbjs16-Feb-06 19:46
hbjs16-Feb-06 19:46 
Hi All,

I have a small problem that I'm unable to zoom in on my Picturebox. Im using Managed C++

int zoomFactor = 2;

System::Drawing::Rectangle rectangleToZoom; //= gcnew System::Drawing::Rectangle();
rectangleToZoom.X = 200;
rectangleToZoom.Y = 100;
rectangleToZoom.Width = 100;
rectangleToZoom.Height = 100;

System::Drawing::Bitmap ^map = gcnew System::Drawing::Bitmap(this->viewPictureE->Image);

System::Drawing::Bitmap ^imageToZoom = map->Clone(rectangleToZoom, System::Drawing::Imaging::PixelFormat::DontCare);

System::Drawing::Bitmap ^zoomImage =gcnew System::Drawing::Bitmap( rectangleToZoom.Width * zoomFactor,rectangleToZoom.Height * zoomFactor);

System::Drawing::Graphics ^ graphics = System::Drawing::Graphics::FromImage(zoomImage);

System::Drawing::Rectangle ^rectangleOfTarget = gcnew System::Drawing::Rectangle(0,0,zoomImage->Width,zoomImage->Height);

graphics->DrawImage(imageToZoom,rectangleToZoom);

It compiles But it doesnt actually zoom in. It does nothing. I have the mouse event handler set to the function.

Can someone see anythin wrong with my code.

any help will be appreciated

Thanks

Jonno



-- modified at 1:47 Friday 17th February, 2006
QuestionNative Types outside assembly Pin
Kordzik16-Feb-06 12:57
Kordzik16-Feb-06 12:57 
AnswerRe: Native Types outside assembly Pin
George L. Jackson16-Feb-06 13:02
George L. Jackson16-Feb-06 13:02 
GeneralRe: Native Types outside assembly Pin
Kordzik17-Feb-06 7:59
Kordzik17-Feb-06 7:59 
QuestionCCmdTarget destructor asserts while destroying sink object... Pin
chervu16-Feb-06 8:30
chervu16-Feb-06 8:30 
Questioncreating a student class Pin
civicrico2316-Feb-06 7:22
civicrico2316-Feb-06 7:22 
AnswerRe: creating a student class Pin
malharone16-Feb-06 7:36
malharone16-Feb-06 7:36 
QuestionLooking for help in program design Pin
ldsdbomber16-Feb-06 5:42
ldsdbomber16-Feb-06 5:42 
QuestionUndefined symbol Pin
Ed.Poore15-Feb-06 11:20
Ed.Poore15-Feb-06 11:20 
Question[Message Deleted] Pin
48d205815-Feb-06 4:59
48d205815-Feb-06 4:59 
AnswerRe: How to fix this bug? Pin
George L. Jackson15-Feb-06 12:49
George L. Jackson15-Feb-06 12:49 
QuestionUsing MemoryStream Pin
Daniel Odom14-Feb-06 11:28
Daniel Odom14-Feb-06 11:28 
AnswerRe: Using MemoryStream Pin
George L. Jackson15-Feb-06 12:56
George L. Jackson15-Feb-06 12:56 
QuestionSystem::Web::?? Pin
Ed K14-Feb-06 11:12
Ed K14-Feb-06 11:12 
AnswerRe: System::Web::?? Pin
George L. Jackson14-Feb-06 12:53
George L. Jackson14-Feb-06 12:53 
AnswerRe: System::Web::?? Pin
Ed K15-Feb-06 4:44
Ed K15-Feb-06 4:44 
GeneralRe: System::Web::?? Pin
George L. Jackson15-Feb-06 14:28
George L. Jackson15-Feb-06 14:28 
AnswerRe: System::Web::?? Pin
Ed K15-Feb-06 15:05
Ed K15-Feb-06 15:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.