generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Uhh.. About bits and bytes.. Again..

Previous Thread :: Next Thread 
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
04 May 2012 10:42 AM
So..
A text file with one character uses 8 bits to store the ascii value of it.

So my logic is failing right here..

Say, we have a picture with 2x2 pixels.
For one pixel we would use 3 bytes (3*8 bits)
Since a value for red, green and blue..
So total pixels = 4
4*bytes in one pixel=
4*3
So it would be 12 bytes..
But it isn't
Why so?
I don't see why it'd need to store more than 3 bytes per pixel qq
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
04 May 2012 10:57 AM
It'd also need to store the position of the pixels? I don't know.
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
04 May 2012 10:59 AM
Well .. Not so because it can store those in the order that they're in
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
05 May 2012 12:04 PM
You're forgetting alpha channels
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
05 May 2012 12:05 PM
Also file headers, footers, data about the image, etc
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
05 May 2012 12:10 PM
You forgot about metadata.
Report Abuse
Robert00001 is not online. Robert00001
Joined: 15 May 2010
Total Posts: 7965
05 May 2012 12:16 PM
And (optional) compression, if possible.
There could be a bool for that (in a number, for that I mean: false=0,true=1)
@trappingnoobs,
Alpha channel is optional, depends if it's going to be transparent (like PNG) or not (like JPEG).
@RATEXmegaGAMER,
No, pixels are in order.

~ ROBERT00001 ~
~(ಠωಠ)~
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image