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

Managed C++/CLI

 
QuestionSee if print queue is empty Pin
Erich Ruth17-Feb-21 6:25
Erich Ruth17-Feb-21 6:25 
AnswerRe: See if print queue is empty Pin
Richard MacCutchan17-Feb-21 21:29
mveRichard MacCutchan17-Feb-21 21:29 
QuestionCompiling a shared library Pin
Member 1504770716-Jan-21 5:57
Member 1504770716-Jan-21 5:57 
AnswerRe: Compiling a shared library Pin
Gerry Schmitz17-Jan-21 3:09
mveGerry Schmitz17-Jan-21 3:09 
GeneralRe: Compiling a shared library Pin
Member 1504770718-Jan-21 3:52
Member 1504770718-Jan-21 3:52 
GeneralRe: Compiling a shared library Pin
Gerry Schmitz18-Jan-21 5:40
mveGerry Schmitz18-Jan-21 5:40 
Question.NET 5? Pin
John Schroedl5-Jan-21 4:13
professionalJohn Schroedl5-Jan-21 4:13 
AnswerRe: .NET 5? Pin
Richard Andrew x6418-Jan-21 12:03
professionalRichard Andrew x6418-Jan-21 12:03 
GeneralRe: .NET 5? Pin
John Schroedl19-Jan-21 2:39
professionalJohn Schroedl19-Jan-21 2:39 
GeneralRe: .NET 5? Pin
Doug Milne 202111-Aug-21 5:06
Doug Milne 202111-Aug-21 5:06 
GeneralRe: .NET 5? Pin
John Schroedl11-Aug-21 5:25
professionalJohn Schroedl11-Aug-21 5:25 
GeneralRe: .NET 5? Pin
Doug Milne 202111-Aug-21 7:45
Doug Milne 202111-Aug-21 7:45 
GeneralRe: .NET 5? Pin
D. Milne24-Aug-21 6:59
D. Milne24-Aug-21 6:59 
GeneralRe: .NET 5? Pin
Richard MacCutchan24-Aug-21 21:45
mveRichard MacCutchan24-Aug-21 21:45 
QuestionHow can I update my status-bar in MFC? Pin
Member 1503370431-Dec-20 21:03
Member 1503370431-Dec-20 21:03 
AnswerRe: How can I update my status-bar in MFC? Pin
Richard MacCutchan31-Dec-20 21:19
mveRichard MacCutchan31-Dec-20 21:19 
QuestionAdding references to WPF or WinForms in .NET 5 (from C++/CLI) Pin
John Schroedl18-Dec-20 5:11
professionalJohn Schroedl18-Dec-20 5:11 
AnswerRe: Adding references to WPF or WinForms in .NET 5 (from C++/CLI) Pin
John Schroedl18-Dec-20 7:34
professionalJohn Schroedl18-Dec-20 7:34 
Question“error:passing 'const std::vector<int>' as 'this' argument discards qualifiers [-fpermissive]” Pin
neuronphysics13-Dec-20 16:35
neuronphysics13-Dec-20 16:35 
Questionap alternate boundary pairs in matrix Pin
Doraemon Kids25-Nov-20 8:26
Doraemon Kids25-Nov-20 8:26 
Image Transformation
Digital images are represented as a matrix and each element in the matrix represents the RGB value of a pixel. Given the pixel values of a nXn image. Write a code to transform the image into another image by alternate swap of edge pixels. That is for example, given a 4 X 4 image as follows:

1 2 3 4

5 6 7 8

9 10 11 12

13 14 15 16

The edge elements of the above image are 1, 2, 3, 4, 8, 12, 16, 15, 14, 13, 9 and 5. The following steps are involved in the transformation:

1 and 3 are swapped

1 and 8 are swapped

1 and 16 are swapped

1 and 14 are swapped

1 and 9 are swapped

After doing alternate swap of edge elements the pixel values of the image looks as follows:

3 2 8 4

5 6 7 16

1 10 11 12

13 9 15 14

And given an image of dimension 5 X 5 as follows:

2 4 5 6 3

3 11 12 7 9

7 15 13 8 1

2 21 25 13 14

17 10 16 19 3

Should transform as:

5 4 3 6 1

3 11 12 7 9

2 15 13 8 3

2 21 25 13 14

7 10 17 19 16

Input Format

First line contains the dimension of the matrix, n

Next nxn lines contain the elements of the matrix in row major order. That is the elements in the first row are given followed by second row and so on

Output Format

Print the transformed nxn matrix in ‘n’ lines

Each line contains the elements of a row separated by a tab.

Note: There is a tab at the end of each line

AnswerRe: ap alternate boundary pairs in matrix Pin
Richard MacCutchan25-Nov-20 9:24
mveRichard MacCutchan25-Nov-20 9:24 
QuestionAbstract classes and factories Pin
Richard Andrew x6412-Sep-20 5:53
professionalRichard Andrew x6412-Sep-20 5:53 
Questionsorce code grid line Pin
SADEGH20771-Aug-20 7:32
SADEGH20771-Aug-20 7:32 
AnswerRe: sorce code grid line Pin
Dave Kreskowiak1-Aug-20 8:41
mveDave Kreskowiak1-Aug-20 8:41 
QuestionCreating an OpenGL view on a Windows Form Pin
SADEGH207730-Jul-20 8:05
SADEGH207730-Jul-20 8: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.