November 30th, 2022 Pt 1

Free Java Method

	public static byte[] readFileAsBinary(String filename) throws FileNotFoundException,IOException {
		File file = new File(filename);
		FileInputStream fis = new FileInputStream(file);
		ByteArrayOutputStream baos = new ByteArrayOutputStream();
		byte buffer[] = new byte[4096];
		int bytesRead =fis.read(buffer); 
		while (bytesRead!=-1) {
			baos.write(buffer,0,buffer.length);
			bytesRead=fis.read(buffer);
		}
		return baos.toByteArray();
	}

会发布一些测试位图文件以供使用,但我受到限制非理想

Would post some tests bitmap files to work with but I am being limited Non Ideally

https://en.wikipedia.org/wiki/BMP_file_format

// Free code, thoughts each pixel is a Hex RGB in 24 Bit Bitmaps, might have that wrong, likely a descriptor table at the front

package file.image;

public class Bitmap24BitPixel {
	public byte red, green, blue;
}

https://image4j.sourceforge.net/

Appears to have missing dependency on BufferedImage from Java AWT

Eclipse with JDK 19 saying cannot be resolved to a type

Eclipse

Version: 2022-09 (4.25.0)
Build id: 20220908-1902

Experience for Tools Null Costed Starting to get annoying.

Feeling of bad deal

module CommunicationUtil {
	requires java.desktop;
	requires java.logging;
}

https://docs.oracle.com/javase/7/docs/api/java/awt/image/BufferedImage.html

Snippet from BMPEncoder

    // write lines
    for (int y = height - 1; y >= 0; y--) {
      
      // write pixel data for each line
      for (int x = 0; x < width; x++) {
        
        // get RGB values for pixel
        int r = raster.getSample(x, y, 0);
        int g = raster.getSample(x, y, 1);
        int b = raster.getSample(x, y, 2);
        
        // write RGB values
        out.writeByte(b);
        out.writeByte(g);
        out.writeByte(r);
      }
      
      // write padding bytes at end of line
      for (int i = width * 3; i < bytesPerLine; i++) {
        out.writeByte(0);
      }
    }

Appears to write Blue Green Red given Little net.sf.image4j.io.LittleEndianOutputStream

https://en.wikipedia.org/wiki/Endianness

Free Code Snippet

	public static void drawImage() {
		BufferedImage bImg = new BufferedImage(200,200,BufferedImage.TYPE_INT_RGB);
		Graphics2D graphics2d = bImg.createGraphics();
		graphics2d.setBackground(Color.BLACK);
		graphics2d.setColor(Color.CYAN);
		graphics2d.draw(new Rectangle(25, 25, 50, 50));
		String writeBitmapTest = "bin"+FileUtil.getFileDivider()+"assets"+FileUtil.getFileDivider()+"TestBitmapWrite.bmp";
		try {
			BMPEncoder.write(bImg, new File(writeBitmapTest));
			lg.log("Test Bitmap Created");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	

给予更多帮助的批判性鼓励

Critical Encouragement Delivery to More Helps

Write your own studio software possible

https://www.lwjgl.org/customize

Bad Power Corrupt Corporations that are wasting my time need to be reduced and repurposed in to smaller corporations

Need to have the people responsible magnified then I can better allocate funding and product choice going forward, may God shine the light of 1000 suns on the issue

If your families product line was dependent on working or not working, how would you feel about that?

A little bit of support lost could be critical

Changes whether a team is hired or fired

likely I might be the prototype, the same version to be installed in corporations people disagree with?

People with sons and daughters, to no longer able to pay bills because Shark like decisions being made?

The people working against me, robbing my future, robbing my future families plates, robbing lots of future families plates

Corporations that play dirty aren’t in it for the long haul

Published by techinfodebug

Flex and Java Developer, Christian, Art, Music, Video, and Vlogging

Leave a comment