Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6111859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:40:44+00:00 2026-05-23T14:40:44+00:00

I have some trouble compiling lodepng (http://lodev.org/lodepng/) for D into my project. In Encode.d

  • 0

I have some trouble compiling lodepng (http://lodev.org/lodepng/) for D into my project.

In Encode.d I have the following code, where the compiler does not expect the assert statements.
Removing this block solves the issue.

invariant
{
    assert(compressionLevel >=0 && compressionLevel <= 9, "invalid zlib compression level");
    assert(targetColorType == ColorType.Any ||
            targetColorType == ColorType.RGB ||
            targetColorType == ColorType.RGBA, "colortype is not supported");
}

In Decode.d I have even more trouble, with the error “no identifier for declarator inout(value)”
for the middle line in:

info.backgroundColor.length = chunk.data.length / 2;
foreach(index, inout value; info.backgroundColor)
    value = chunk.data[index * 2];

Is there some trouble with old syntax here, and how do I fix it?
Is there some other way to create png images in D in a simple manner?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:40:45+00:00Added an answer on May 23, 2026 at 2:40 pm

    I gave up on lodepng, and used the code on
    http://www.dsource.org/projects/plot2kill/browser/trunk/png.d
    which works after some minor changes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have run into some trouble with the gd library's imagefilledpolygon() . For some
I'm having trouble compiling some code against ocilib (libocilib.a) on version 3.9.0: $ ls
I have some trouble forward declaring a function that uses boost::enable_if : the following
I have some trouble installing Management Studio 2008 Express through C#-Code. The code looks
I have some trouble writing some code (I might be tired), so I need
I have some trouble with this. I have one database with the following tables:
I'm having some trouble comparing values found in VARCHAR fields. I have a table
I have some trouble with my trac installation (version 11.4). What should I do
I have some trouble with jquery ui-events: In my application, there are some sliders.
I have some trouble achieving adequate real-time performance from my application and wondering if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.