Search:

Type: Posts; User: kallistine

Search: Search took 0.00 seconds.

  1. Replies
    35
    Views
    17,073

    Haha, you guys seem to be having fun. Thanks a...

    Haha, you guys seem to be having fun.

    Thanks a lot for all the help! I've successfully been able to read from the header all the necessary information and so I'm just working on a nifty encryption...
  2. Replies
    35
    Views
    17,073

    Actually, I think I will get more out of this...

    Actually, I think I will get more out of this assignment if I learn how to extract things from the header, I will try to implement what MK27 did. Thanks a lot!
  3. Replies
    35
    Views
    17,073

    Thanks for all the suggestions but despite my...

    Thanks for all the suggestions but despite my constant resizing being inefficient, it's part of the directions, so I will follow that.

    I have inserted


    if((bitmap->size >300000) &&...
  4. Replies
    35
    Views
    17,073

    Thanks! The realloc is working correctly now, but...

    Thanks! The realloc is working correctly now, but it seems to increase indefinitely, is this because there's something wrong with how my fread is working? Is this due to the fact that I lack some...
  5. Replies
    35
    Views
    17,073

    At the top of the program, after the includes,...

    At the top of the program, after the includes, there is
    #define n 10000

    I have put in some edits, but now there is a compile error regarding the reassigned n value,

    n = n*2

    error: invalid...
  6. Replies
    35
    Views
    17,073

    That is what I'm asked to do, just encrypt image...

    That is what I'm asked to do, just encrypt image data, keeping header intact.
  7. Replies
    35
    Views
    17,073

    So currently my main looks like this int...

    So currently my main looks like this


    int main(int argc, char* argv[]){
    FILE* in;
    Bitmap* map = malloc(sizeof(Bitmap));
    if(argc <=3){
    printf("Usage: %s [-e] [-d] inputFileName...
  8. Replies
    35
    Views
    17,073

    I think I can agree with you now Salem. Do you...

    I think I can agree with you now Salem. Do you think then my readImage function is written okay? So now in my encrypt function I just start applying changes to the bytes starting from array[54]?
  9. Replies
    35
    Views
    17,073

    So the struct of the bitmap is like this, and I'm...

    So the struct of the bitmap is like this, and I'm not sure how to get height and width if I don't read specifics in the header.


    typedef struct {
    char* data;
    char* header;
    int height;
    ...
  10. Replies
    35
    Views
    17,073

    Some links have been given to me with good...

    Some links have been given to me with good information on the header, but the way my assignment reads, the header part doesn't need to be encrypted, and should just be copied back to the new image,...
  11. Replies
    35
    Views
    17,073

    that's actually what I was thinking, but I'm not...

    that's actually what I was thinking, but I'm not sure about the struct, it seems like those things need to be declared at some point.
  12. Replies
    35
    Views
    17,073

    Thanks for the links, I looked into them and they...

    Thanks for the links, I looked into them and they really seem very complicated. I think I'm supposed to be doing something much simpler.
  13. Replies
    35
    Views
    17,073

    I searched back a few pages but didn't find...

    I searched back a few pages but didn't find anything, could you direct me to some of those pages? Thanks a lot.
  14. Replies
    35
    Views
    17,073

    reading bitmap into array

    I have a question regarding reading a bitmap image into an array. I understand that usually the first 54 bytes of the bitmap is for the header information, and basically I need to be able to read the...
Results 1 to 14 of 14