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

Managed C++/CLI

 
Generalimplementing inode using c++ Pin
perkie5-Dec-03 3:42
perkie5-Dec-03 3:42 
GeneralConceptual doubt Pin
yeluri4-Dec-03 2:09
yeluri4-Dec-03 2:09 
GeneralAccessing Managed From Extended Proc Pin
Shaun Becker3-Dec-03 10:25
Shaun Becker3-Dec-03 10:25 
GeneralReading from a USB port with Win32 API Pin
sixefftee2-Dec-03 8:39
sixefftee2-Dec-03 8:39 
GeneralRe: Reading from a USB port with Win32 API Pin
Chris Barrell2-Dec-03 9:21
Chris Barrell2-Dec-03 9:21 
GeneralRe: Reading from a USB port with Win32 API Pin
John M. Drescher9-Dec-03 7:18
John M. Drescher9-Dec-03 7:18 
Questionhow i save bitmap file by use VC++ .net Pin
kritsadakorn30-Nov-03 14:18
kritsadakorn30-Nov-03 14:18 
AnswerRe: how i save bitmap file by use VC++ .net Pin
RafMar2-Dec-03 7:26
RafMar2-Dec-03 7:26 
I think you are talking about this:

Class CBitmap has the method Save. It's overloaded in five constructors.For instance one of them get the parameters --- pBitmap::Save( System::String__gc , System::Drawing::Imaging::ImageFormat__gc)

where in the string you put a name for saving the file ( actually you put whole path ), and in the second one you specify the requiered format that you want for this saved image.

Yes it's so simple to save your new bitmap as Gif, Tiff, JPeg, Icon and so on.


For instance you can use this function in this way:
{....
System::String * mark = S"\\";
//We open an openFileDialog in our form, we suppose that are
//filtered for only show BMP files.
System::Windows::Forms::OpenFileDialog * openFileDialog1 = new System::Windows::Forms::OpenFileDialog();
openFileDialog1->ShowDialog();

//We get the selected file path
String* strResult = openFileDialog1->FileName;
System::Drawing::Bitmap * pBitmap;

//and open it in our Bitmap
pBitmap = new System::Drawing::Bitmap( strResult);

//We search the last '\' in the path for change the name of the file and
// the extension

int Index = strResult->LastIndexOf (mark);
strResult = strResult->Substring(0,Index);
strResult = strResult->Concat(strResult,S"\\ITS_OK.jpg" );

//finally you can save it with your new desired format (or the same one)
pBitmap->Save(strResult, System::Drawing::Imaging::ImageFormat::Jpeg );
}

if your question is in another way, please reply me.

Best Regards!Big Grin | :-D

General** Array with C# Pin
Relampago25-Nov-03 10:07
Relampago25-Nov-03 10:07 
GeneralRe: ** Array with C# Pin
Relampago25-Nov-03 10:26
Relampago25-Nov-03 10:26 
QuestionAnyone attempting Managed Wrapper for XP P2P sdk? Pin
schnee2k325-Nov-03 7:19
schnee2k325-Nov-03 7:19 
GeneralProblem choosing collection…. Pin
d00_ape24-Nov-03 22:05
sussd00_ape24-Nov-03 22:05 
QuestionWill the free Borland Compiler have everything I need? Pin
Anonymous24-Nov-03 13:37
Anonymous24-Nov-03 13:37 
AnswerRe: Will the free Borland Compiler have everything I need? Pin
Anonymous24-Nov-03 13:39
Anonymous24-Nov-03 13:39 
GeneralRe: Will the free Borland Compiler have everything I need? Pin
Brian Olej3-Jan-04 20:19
Brian Olej3-Jan-04 20:19 
GeneralError after changing default application icon Pin
tfitz24-Nov-03 13:13
tfitz24-Nov-03 13:13 
GeneralConvert data stored in a DataTable to types in unmanaged code Pin
holly_vi24-Nov-03 6:58
holly_vi24-Nov-03 6:58 
GeneralProject Icon for MC++ Pin
DR Clevenger21-Nov-03 8:16
DR Clevenger21-Nov-03 8:16 
GeneralRe: Project Icon for MC++ Pin
Tom Archer21-Nov-03 19:13
Tom Archer21-Nov-03 19:13 
GeneralRe: Project Icon for MC++ Pin
DR Clevenger22-Nov-03 2:16
DR Clevenger22-Nov-03 2:16 
GeneralRe: Project Icon for MC++ Pin
Tom Archer22-Nov-03 3:42
Tom Archer22-Nov-03 3:42 
GeneralRe: Project Icon for MC++ Pin
DR Clevenger22-Nov-03 3:44
DR Clevenger22-Nov-03 3:44 
GeneralRe: Project Icon for MC++ Pin
Tom Archer22-Nov-03 6:45
Tom Archer22-Nov-03 6:45 
GeneralDataSet and DataRow Pin
Alexandre R Oliveira20-Nov-03 9:48
Alexandre R Oliveira20-Nov-03 9:48 
GeneralRe: DataSet and DataRow Pin
Tom Archer20-Nov-03 18:52
Tom Archer20-Nov-03 18:52 

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.