Author Topic: Image Cropping/Moving program  (Read 5969 times)

0 Members and 2 Guests are viewing this topic.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Image Cropping/Moving program
« Reply #15 on: February 05, 2010, 04:40:11 pm »
yeah it is a little slow, but not that much slower at storing then 0 and 1, all you do is have a loop like this:
Code: [Select]
Delvar F
For(A,X,X+3)
F+(1+(A=X+3))pxl-test(Y,X+A
End
and then F has the value in it (although I can't remember if my logic on the F+... line is right x.x I'd have to look later...
/e

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Image Cropping/Moving program
« Reply #16 on: February 05, 2010, 05:26:20 pm »
I was thinking in compressing by making numbers like:
Compress 8 pixels with the fake binary numbers 1, 10, 11, 100... to 11111111.

And what about compress 24 bits into one number?
Hobbing in calculator projects.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Image Cropping/Moving program
« Reply #17 on: February 05, 2010, 06:27:01 pm »
That could work. Also another way to "compress" the list is to use imaginary numbers (eg: 10+i5) and you would use the real() to grab the first part and the other one, for the second part.
/e

Offline Eniripsa96

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +3/-0
    • View Profile
Re: Image Cropping/Moving program
« Reply #18 on: February 05, 2010, 06:41:39 pm »
Hmm, maybe doing that vertically would work since 63 is divisible by 3, making a few loops and such, that is a possibility. I'm going to fool around a little more and see if i can discover anything else. If not, I'll try that.

However, i do not know if my method can extract anything besides a 1 or 0 because its based on rounding, which 2 rounded is the same as 1 rounded, so i would have to change it for that.

Hmm....if i check for each spot along a small line, then make each one multiply a preset value of 1 in a list spot by a prime lie the first pixel multiplies it by 2, second does it by 3, third by 5, etc, then use a factor checking section to tell what pixels to shade...that could possibly work as well.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Image Cropping/Moving program
« Reply #19 on: February 05, 2010, 09:06:41 pm »
Hmm....if i check for each spot along a small line, then make each one multiply a preset value of 1 in a list spot by a prime lie the first pixel multiplies it by 2, second does it by 3, third by 5, etc, then use a factor checking section to tell what pixels to shade...that could possibly work as well.
I love doing this; I think you can compress any combination of 13 1 or 0 numbers like this, but I'm unsure.

Note: Eeems, a compressed list is twice the size of a reagular list.
« Last Edit: February 05, 2010, 09:07:22 pm by ztrumpet »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Image Cropping/Moving program
« Reply #20 on: February 05, 2010, 09:22:34 pm »
True (that's why it was in quotes :p) but it allows you to get around the only 999 items issue :p