# File lib/pixels.rb, line 262
262:     def initialize(file, header, instance_vars, bytes_per_pixel)
263:       @mutex = Mutex.new    # Obtain this lock whenever you use @file
264:       @file = file
265:       @header = header
266:       for k, v in instance_vars
267:         instance_variable_set("@#{k.to_s}", v)
268:       end
269:       @bytes_per_pixel = bytes_per_pixel
270:       @bytes_per_row = bytes_per_pixel * @width
271:     end