Skip to main content
added 293 characters in body
Source Link
Iris Frenzy
  • 105
  • 2
  • 11

I am pretty sure I have to update the info header,but I am not sure how. When I try to change bfSize (bfSize *= grow;) or another part, andheight, etc, my file won't compile. All help is greatly appreciated, thank in advance!

This is what would not compile:

new_bfSize = bfSize * grow;
new_biHeight = biHeight * grow;
new_biWidth = biWidth * grow;
new_biSizeImage = new_biWidth + sizeof(RGBTRIPLE) + padding2 + abs(new_biHeight);
newbfSize = new_biSizeImage + sizeof(BITMAPINFOHEADER);

Here is my code(without that section):

I am pretty sure I have to update the info header,but I am not sure how. When I try to change bfSize (bfSize *= grow;) or another part, and my file won't compile. All help is greatly appreciated, thank in advance!

Here is my code:

I am pretty sure I have to update the info header,but I am not sure how. When I try to change bfSize, height, etc, my file won't compile. All help is greatly appreciated, thank in advance!

This is what would not compile:

new_bfSize = bfSize * grow;
new_biHeight = biHeight * grow;
new_biWidth = biWidth * grow;
new_biSizeImage = new_biWidth + sizeof(RGBTRIPLE) + padding2 + abs(new_biHeight);
newbfSize = new_biSizeImage + sizeof(BITMAPINFOHEADER);

Here is my code(without that section):

added 30 characters in body; edited title
Source Link
Iris Frenzy
  • 105
  • 2
  • 11

Pset4- ResizingHow to Update FileHeader (Resizing Trouble)

I have looked over my code over and over and am not sure what is wrong. When I run my program by imputing 1, it prints out an exact copy (like it should). But, when I try running my program by imputing 2 (or anything else), it prints out the same size image with seemingly random colored pixels. 

I thinkam pretty sure I have to update the info header, butbut I am really lostnot sure how. When I try to change bfSize (bfSize *= grow;) or another part, and my file won't compile. All help is greatly appreciated, thank in advance!

Pset4- Resizing Trouble

I have looked over my code over and over and am not sure what is wrong. When I run my program by imputing 1, it prints out an exact copy (like it should). But, when I try running my program by imputing 2 (or anything else), it prints out the same size image with seemingly random colored pixels. I think I have to update the info header, but I am really lost. All help is greatly appreciated, thank in advance!

Pset4- How to Update FileHeader (Resizing Trouble)

When I run my program by imputing 1, it prints out an exact copy (like it should). But, when I try running my program by imputing 2 (or anything else), it prints out the same size image with seemingly random colored pixels. 

I am pretty sure I have to update the info header,but I am not sure how. When I try to change bfSize (bfSize *= grow;) or another part, and my file won't compile. All help is greatly appreciated, thank in advance!

deleted 38 characters in body
Source Link
Iris Frenzy
  • 105
  • 2
  • 11

I have looked over my code over and over and am not sure what is wrong. When I run my program by imputing 1, it prints out an exact copy (like it should). But, when I try running my program by imputing 2 (or anything else), it prints out the same size image with seemingly random colored pixels. I think it might be something to do with my padding or I need another seek or loop.have to update the info header, but I am really lost. All help is greatly appreciated, thank in advance!

I have looked over my code over and over and am not sure what is wrong. When I run my program by imputing 1, it prints out an exact copy (like it should). But, when I try running my program by imputing 2 (or anything else), it prints out the same size image with seemingly random colored pixels. I think it might be something to do with my padding or I need another seek or loop. I am really lost. All help is greatly appreciated, thank in advance!

I have looked over my code over and over and am not sure what is wrong. When I run my program by imputing 1, it prints out an exact copy (like it should). But, when I try running my program by imputing 2 (or anything else), it prints out the same size image with seemingly random colored pixels. I think I have to update the info header, but I am really lost. All help is greatly appreciated, thank in advance!

Source Link
Iris Frenzy
  • 105
  • 2
  • 11
Loading